From 2e36da9f6fe66e092384b2794d4e973389e32fdb Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 25 Sep 2008 15:36:43 +0000 Subject: fix compilation if XPath is not included Daniel * runxmlconf.c: fix compilation if XPath is not included Daniel svn path=/trunk/; revision=3796 --- runxmlconf.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'runxmlconf.c') diff --git a/runxmlconf.c b/runxmlconf.c index 8ef7f747..38b0ce46 100644 --- a/runxmlconf.c +++ b/runxmlconf.c @@ -12,6 +12,8 @@ #include #endif +#ifdef LIBXML_XPATH_ENABLED + #if !defined(_WIN32) || defined(__CYGWIN__) #include #endif @@ -605,3 +607,11 @@ main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) { fclose(logfile); return(ret); } + +#else /* ! LIBXML_XPATH_ENABLED */ +#include +int +main(int argc, char **argv) { + fprintf(stderr, "%s need XPath support\n", argv[0]); +} +#endif -- cgit v1.2.1