summaryrefslogtreecommitdiff
path: root/ext/dom/domlocator.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dom/domlocator.c')
-rw-r--r--ext/dom/domlocator.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/dom/domlocator.c b/ext/dom/domlocator.c
index 8c33855b6c..1981549d3d 100644
--- a/ext/dom/domlocator.c
+++ b/ext/dom/domlocator.c
@@ -24,6 +24,7 @@
#endif
#include "php.h"
+#if HAVE_LIBXML && HAVE_DOM
#include "php_dom.h"
@@ -119,3 +120,4 @@ int dom_domlocator_uri_read(dom_object *obj, zval **retval TSRMLS_DC)
/* }}} */
+#endif