diff --git a/src/xmltree.c b/src/xmltree.c index 273355379..5ce90c0f4 100644 --- a/src/xmltree.c +++ b/src/xmltree.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -705,7 +706,11 @@ int xmlSecReplaceNodeBufferAndReturn(xmlNodePtr node, const xmlSecByte *buffer, xmlSecSize size, xmlNodePtr *replaced) { xmlNodePtr results = NULL; xmlNodePtr next = NULL; +#if (LIBXML_VERSION >= 21500) + xmlChar *oldenc; +#else /* (LIBXML_VERSION >= 21500) */ const xmlChar *oldenc; +#endif /* (LIBXML_VERSION >= 21500) */ int len; xmlParserErrors ret;