summaryrefslogtreecommitdiffstats
path: root/meta-perl/recipes-perl/libxml/libxml-libxml-perl/fix-CATALOG-conditional-compile.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-perl/recipes-perl/libxml/libxml-libxml-perl/fix-CATALOG-conditional-compile.patch')
-rw-r--r--meta-perl/recipes-perl/libxml/libxml-libxml-perl/fix-CATALOG-conditional-compile.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-perl/recipes-perl/libxml/libxml-libxml-perl/fix-CATALOG-conditional-compile.patch b/meta-perl/recipes-perl/libxml/libxml-libxml-perl/fix-CATALOG-conditional-compile.patch
new file mode 100644
index 000000000..1dd9fb375
--- /dev/null
+++ b/meta-perl/recipes-perl/libxml/libxml-libxml-perl/fix-CATALOG-conditional-compile.patch
@@ -0,0 +1,31 @@
1[PATCH] Fix a compile error
2
3Upstream-Status: Pending
4
5Fix a compile error by conditional using 'catal' since catal
6is only defined when LIBXML_CATALOG_ENABLED is enabled.
7
8Signed-off-by: Roy Li <rongqing.li@windriver.com>
9---
10 LibXML.xs | 2 ++
11 1 file changed, 2 insertions(+)
12
13diff --git a/LibXML.xs b/LibXML.xs
14index 66da04b..45da681 100644
15--- a/LibXML.xs
16+++ b/LibXML.xs
17@@ -2777,9 +2777,11 @@ _default_catalog( self, catalog )
18 xmlCatalogPtr catal = INT2PTR(xmlCatalogPtr,SvIV(SvRV(catalog)));
19 #endif
20 INIT:
21+#ifdef LIBXML_CATALOG_ENABLED
22 if ( catal == NULL ) {
23 croak( "empty catalog\n" );
24 }
25+#endif
26 CODE:
27 warn( "this feature is not implemented" );
28 RETVAL = 0;
29--
301.7.10.4
31