summaryrefslogtreecommitdiffstats
path: root/meta-perl/recipes-perl/libxml/libxml-libxml-perl/fix-CATALOG-conditional-compile.patch
diff options
context:
space:
mode:
authorRoy Li <rongqing.li@windriver.com>2014-07-15 08:42:38 +0800
committerMartin Jansa <Martin.Jansa@gmail.com>2014-07-22 00:02:01 +0200
commit743751e20cc266143130fb5bb49efb4c86b9e02b (patch)
treee7cd520986b81d905ea0efc7fdec07b5a5e54c7c /meta-perl/recipes-perl/libxml/libxml-libxml-perl/fix-CATALOG-conditional-compile.patch
parent764c5c07165848a7821cf835925331dc3fa27384 (diff)
downloadmeta-openembedded-743751e20cc266143130fb5bb49efb4c86b9e02b.tar.gz
libxml-libxml-perl: add recipe
This module is an interface to libxml2, providing XML and HTML parsers \ with DOM, SAX and XMLReader interfaces, a large subset of DOM Layer 3 \ interface and a XML::XPath-like interface to XPath API of libxml2. \ The module is split into several packages which are not described in this \ section; unless stated otherwise, you only need to use XML::LibXML; in \ your programs. Signed-off-by: Roy Li <rongqing.li@windriver.com> Acked-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
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 0000000000..1dd9fb3757
--- /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