aboutsummaryrefslogtreecommitdiffstats
path: root/runxmlconf.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2008-09-25 15:36:43 +0000
committerDaniel Veillard <veillard@src.gnome.org>2008-09-25 15:36:43 +0000
commit2e36da9f6fe66e092384b2794d4e973389e32fdb (patch)
treec54fffce81e18390a1828313edf06a1866e2ef88 /runxmlconf.c
parent7e65fad1e3a60c2a550a046ac58d99bc06760a77 (diff)
downloadandroid_external_libxml2-2e36da9f6fe66e092384b2794d4e973389e32fdb.tar.gz
android_external_libxml2-2e36da9f6fe66e092384b2794d4e973389e32fdb.tar.bz2
android_external_libxml2-2e36da9f6fe66e092384b2794d4e973389e32fdb.zip
fix compilation if XPath is not included Daniel
* runxmlconf.c: fix compilation if XPath is not included Daniel svn path=/trunk/; revision=3796
Diffstat (limited to 'runxmlconf.c')
-rw-r--r--runxmlconf.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/runxmlconf.c b/runxmlconf.c
index 8ef7f747..38b0ce46 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 @@ main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
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