diff --git a/src/common/util/xml.c b/src/common/util/xml.c index 09ccc4eb5..b57929dde 100644 --- a/src/common/util/xml.c +++ b/src/common/util/xml.c @@ -94,7 +94,11 @@ read_xml(const char * filename) xml_reader * reader = xmlReaders; xmlDocPtr doc; +#ifdef XML_PARSE_XINCLUDE doc = xmlReadFile(filename, NULL, XML_PARSE_XINCLUDE); +#else + doc = xmlParseFile(filename); +#endif if (doc==NULL) { log_error(("could not open %s\n", filename)); return -1;