hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[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