summaryrefslogtreecommitdiff
path: root/xsltproc
diff options
context:
space:
mode:
authorMichael Bonfils <murlock42@gmail.com>2012-08-16 17:46:29 +0800
committerDaniel Veillard <veillard@redhat.com>2012-08-16 17:46:29 +0800
commit9e5d4dc5c0c7a4810eee28d1cdebc86e587f76bf (patch)
treefc4a92cf79f91dd67502edfa61330bdf5a850c05 /xsltproc
parent5e184e7154e8aa466e988f17c8b97b65196f94bf (diff)
downloadlibxslt-9e5d4dc5c0c7a4810eee28d1cdebc86e587f76bf.tar.gz
libxslt-9e5d4dc5c0c7a4810eee28d1cdebc86e587f76bf.tar.bz2
libxslt-9e5d4dc5c0c7a4810eee28d1cdebc86e587f76bf.zip
xincludestyle wasn't protected with LIBXML_XINCLUDE_ENABLED
Leading to possible compilation issue if this isn't in libxml2
Diffstat (limited to 'xsltproc')
-rw-r--r--xsltproc/xsltproc.c2
1 files changed, 2 insertions, 0 deletions
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;