aboutsummaryrefslogtreecommitdiffstats
path: root/xmlstub.c
diff options
context:
space:
mode:
Diffstat (limited to 'xmlstub.c')
-rw-r--r--xmlstub.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmlstub.c b/xmlstub.c
index c64bdd02af..6ceb9c32be 100644
--- a/xmlstub.c
+++ b/xmlstub.c
@@ -145,11 +145,13 @@ loadLibXML(void)
}
XmlStub.xmlSubstituteEntitiesDefault=(int(*)(int))symbol;
- if (!g_module_symbol(handle, "xmlDoValidityCheckingDefaultValue", &symbol)) {
+#ifdef ETHEREAL_XML_DO_VALIDITY_CHECKING
+ if (!g_module_symbol(handle, "xmlDoValidityCheckingDefaultValue", &symbol)) {
g_warning("Unable to find \"xmlDoValidityCheckingDefaultValue\"");
error=TRUE;
}
XmlStub.xmlDoValidityCheckingDefaultValue = (int *)symbol;
+#endif
/*
* Return if any of the above functions set our error flag.