Files
francis.wang 4c86c082a2 Initial commit: OpenWrt-Yocto monorepo
Combine poky (Yocto scarthgap), meta-openembedded (scarthgap), and
meta-openwrt into a single repository.

Components:
- poky/             Yocto core framework (BitBake + OE-Core)
- meta-openembedded/ Community layers (meta-oe, meta-python, meta-networking)
- meta-openwrt/     OpenWrt customization layer
- setup-env.sh      One-click build environment setup
- README.md         Project documentation
2026-07-11 13:28:01 +08:00

32 lines
752 B
Diff

[PATCH] Fix a compile error
Upstream-Status: Pending
Fix a compile error by conditional using 'catal' since catal
is only defined when LIBXML_CATALOG_ENABLED is enabled.
Signed-off-by: Roy Li <rongqing.li@windriver.com>
---
LibXML.xs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/LibXML.xs b/LibXML.xs
index 66da04b..45da681 100644
--- a/LibXML.xs
+++ b/LibXML.xs
@@ -2777,9 +2777,11 @@ _default_catalog( self, catalog )
xmlCatalogPtr catal = INT2PTR(xmlCatalogPtr,SvIV(SvRV(catalog)));
#endif
INIT:
+#ifdef LIBXML_CATALOG_ENABLED
if ( catal == NULL ) {
croak( "empty catalog\n" );
}
+#endif
CODE:
warn( "this feature is not implemented" );
RETVAL = 0;
--
1.7.10.4