From 9e5d4dc5c0c7a4810eee28d1cdebc86e587f76bf Mon Sep 17 00:00:00 2001 From: Michael Bonfils Date: Thu, 16 Aug 2012 17:46:29 +0800 Subject: [PATCH] xincludestyle wasn't protected with LIBXML_XINCLUDE_ENABLED Leading to possible compilation issue if this isn't in libxml2 --- xsltproc/xsltproc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c index 42d6b9aa..35f37e8b 100644 --- a/xsltproc/xsltproc.c +++ b/xsltproc/xsltproc.c @@ -819,6 +819,7 @@ main(int argc, char **argv) style = xmlReadFile((const char *) argv[i], NULL, options); if (timing) endTimer("Parsing stylesheet %s", argv[i]); +#ifdef LIBXML_XINCLUDE_ENABLED if (xincludestyle) { if (style != NULL) { if (timing) @@ -833,6 +834,7 @@ main(int argc, char **argv) } } } +#endif if (style == NULL) { fprintf(stderr, "cannot parse %s\n", argv[i]); cur = NULL;