diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2008-09-25 15:36:43 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2008-09-25 15:36:43 +0000 |
commit | 2e36da9f6fe66e092384b2794d4e973389e32fdb (patch) | |
tree | c54fffce81e18390a1828313edf06a1866e2ef88 | |
parent | 7e65fad1e3a60c2a550a046ac58d99bc06760a77 (diff) | |
download | libxml2-2e36da9f6fe66e092384b2794d4e973389e32fdb.tar.gz |
fix compilation if XPath is not included Daniel
* runxmlconf.c: fix compilation if XPath is not included
Daniel
svn path=/trunk/; revision=3796
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | runxmlconf.c | 10 |
2 files changed, 14 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Thu Sep 25 17:35:57 CEST 2008 Daniel Veillard <daniel@veillard.com> + + * runxmlconf.c: fix compilation if XPath is not included + Thu Sep 25 16:54:04 CEST 2008 Daniel Veillard <daniel@veillard.com> * xmlreader.c: patch from Riccardo Scussat fixing custom error 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 |