Fix build error with libxml2 2.12.0 https://github.com/indexdata/yaz/issues/102 https://github.com/indexdata/yaz/pull/103 --- client/client.c.orig +++ client/client.c @@ -73,6 +73,10 @@ #include #endif +#if YAZ_HAVE_XML2 +#include +#endif + #include "admin.h" #include "tabcomplete.h" --- src/record_render.c.orig +++ src/record_render.c @@ -23,6 +23,7 @@ #include #if YAZ_HAVE_XML2 +#include #include #include #endif --- test/test_ccl.c.orig +++ test/test_ccl.c @@ -11,6 +11,9 @@ #include #include +#if YAZ_HAVE_XML2 +#include +#endif static int tst_ccl_query(CCL_bibset bibset, const char *query, --- test/test_icu.c.orig +++ test/test_icu.c @@ -28,6 +28,7 @@ #endif #if YAZ_HAVE_XML2 +#include #include #endif --- test/test_xml_include.c.orig +++ test/test_xml_include.c @@ -12,6 +12,9 @@ #include #include +#if YAZ_HAVE_XML2 +#include +#endif static void tst_xml_include1(void) { --- util/cclsh.c.orig +++ util/cclsh.c @@ -20,6 +20,9 @@ #include #endif +#if YAZ_HAVE_XML2 +#include +#endif static int debug = 0; static char *prog; --- util/yaz-icu.c.orig +++ util/yaz-icu.c @@ -17,6 +17,8 @@ #if YAZ_HAVE_ICU +#include + #include #include #include --- util/yaz-record-conv.c.orig +++ util/yaz-record-conv.c @@ -13,6 +13,10 @@ #include #include +#if YAZ_HAVE_XML2 +#include +#endif + const char *prog = "yaz-record-conv"; static void usage(void)