summaryrefslogtreecommitdiff
path: root/ext/xml/compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/xml/compat.c')
-rw-r--r--ext/xml/compat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/xml/compat.c b/ext/xml/compat.c
index e8f0cf1..04d33fd 100644
--- a/ext/xml/compat.c
+++ b/ext/xml/compat.c
@@ -17,6 +17,7 @@
*/
#include "php.h"
+#if HAVE_LIBXML && HAVE_XML
#include "expat_compat.h"
#ifdef LIBXML_EXPAT_COMPAT
@@ -555,6 +556,7 @@ XML_ParserFree(XML_Parser parser)
}
#endif /* LIBXML_EXPAT_COMPAT */
+#endif
/**
* Local Variables: