]> xenbits.xensource.com Git - libvirt.git/commitdiff
virxml: include <libxml/xmlsave.h> for xmlIndentTreeOutput declaration
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 20 Nov 2023 02:18:12 +0000 (03:18 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 21 Nov 2023 13:43:39 +0000 (14:43 +0100)
After libxml2's commit of v2.12.0~101 we no longer get
xmlIndentTreeOutput declaration by us including just
libxml/xpathInternals.h and libxml2's header files leakage.

Resolves: https://bugs.gentoo.org/917516
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virxml.c

index 0c1eae8c3c2be615ba7a16dfc39a89a90dfea421..4f215a0e5947e7d07dd2827da9ad3fb2354941cd 100644 (file)
@@ -24,6 +24,7 @@
 #include <math.h>               /* for isnan() */
 #include <sys/stat.h>
 
+#include <libxml/xmlsave.h>
 #include <libxml/xpathInternals.h>
 
 #include "virerror.h"