git.annexia.org
/
virt-top.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d04fdf
)
src: Include <libxml/parser.h>
master
author
Richard W.M. Jones
<rjones@redhat.com>
Mon, 27 Nov 2023 14:09:04 +0000
(14:09 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Mon, 27 Nov 2023 14:09:04 +0000
(14:09 +0000)
libxml2 2.12.1 failed with this error:
xml-c.c:92:9: warning: implicit declaration of function ‘xmlReadMemory’; did you mean ‘xmlInitMemory’? [-Wimplicit-function-declaration]
92 | doc = xmlReadMemory (String_val (xmlv), caml_string_length (xmlv),
| ^~~~~~~~~~~~~
| xmlInitMemory
src/xml-c.c
patch
|
blob
|
history
diff --git
a/src/xml-c.c
b/src/xml-c.c
index
72042bf
..
6c546b9
100644
(file)
--- a/
src/xml-c.c
+++ b/
src/xml-c.c
@@
-28,6
+28,7
@@
#include <caml/memory.h>
#include <caml/mlvalues.h>
+#include <libxml/parser.h>
#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>