[libxml2] Fix build without reader but with pattern
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Fix build without reader but with pattern
- Date: Tue, 25 Jun 2019 09:58:05 +0000 (UTC)
commit f209e55107697159b49460f43ef74c735c4bfd5b
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Tue Jun 25 11:45:16 2019 +0200
Fix build without reader but with pattern
Broken by commit dbc6b55b.
xmllint.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/xmllint.c b/xmllint.c
index d84f084f..2bbe91d6 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -3758,7 +3758,7 @@ main(int argc, char **argv) {
xmlSchemaFree(wxschemas);
xmlRelaxNGCleanupTypes();
#endif
-#ifdef LIBXML_PATTERN_ENABLED
+#if defined(LIBXML_READER_ENABLED) && defined(LIBXML_PATTERN_ENABLED)
if (patternc != NULL)
xmlFreePattern(patternc);
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]