From f30045cf44a49707b9d883de44f9b2aff757c067 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Thu, 1 Feb 2024 08:51:36 +0100 Subject: [PATCH] libxml2-2.12 compatibility --- src/utils/dumplibs.cpp | 2 +- src/utils/xml/libxml.inc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/dumplibs.cpp b/src/utils/dumplibs.cpp index 4215d6183..2d410f150 100644 --- a/src/utils/dumplibs.cpp +++ b/src/utils/dumplibs.cpp @@ -140,7 +140,7 @@ void dumpLibs() LIBXML_TEST_VERSION #endif // LIBXML_TEST_VERSION #ifdef ENABLE_LIBXML - const char **xmlVersion = __xmlParserVersion(); + const char * const *xmlVersion = __xmlParserVersion(); if (xmlVersion != nullptr) logger->log(" libxml2: %s", *xmlVersion); #endif // ENABLE_LIBXML diff --git a/src/utils/xml/libxml.inc b/src/utils/xml/libxml.inc index c60abd095..cf4c845a9 100644 --- a/src/utils/xml/libxml.inc +++ b/src/utils/xml/libxml.inc @@ -24,6 +24,7 @@ #ifdef ENABLE_LIBXML +#include #include __XML_XMLWRITER_H__ -- 2.46.0