fix compilation if XPath is not included Daniel
* runxmlconf.c: fix compilation if XPath is not included
Daniel
svn path=/trunk/; revision=3796
diff --git a/runxmlconf.c b/runxmlconf.c
index 8ef7f74..38b0ce4 100644
--- a/runxmlconf.c
+++ b/runxmlconf.c
@@ -12,6 +12,8 @@
#include <stdio.h>
#endif
+#ifdef LIBXML_XPATH_ENABLED
+
#if !defined(_WIN32) || defined(__CYGWIN__)
#include <unistd.h>
#endif
@@ -605,3 +607,11 @@
fclose(logfile);
return(ret);
}
+
+#else /* ! LIBXML_XPATH_ENABLED */
+#include <stdio.h>
+int
+main(int argc, char **argv) {
+ fprintf(stderr, "%s need XPath support\n", argv[0]);
+}
+#endif