File fix-libxml2.patch of Package manaplus

diff --git a/src/utils/dumplibs.cpp b/src/utils/dumplibs.cpp
index b7d6540..49849ff 100644
--- a/src/utils/dumplibs.cpp
+++ b/src/utils/dumplibs.cpp
@@ -140,9 +140,9 @@ void dumpLibs()
     LIBXML_TEST_VERSION
 #endif  // LIBXML_TEST_VERSION
 #ifdef ENABLE_LIBXML
-    const char **xmlVersion = __xmlParserVersion();
+    const char *xmlVersion = xmlParserVersion;
     if (xmlVersion != nullptr)
-        logger->log(" libxml2: %s", *xmlVersion);
+        logger->log(" libxml2: %s", xmlVersion);
 #endif  // ENABLE_LIBXML
 #ifdef USE_SDL2
     SDL_version sdlVersion;
@@ -165,7 +165,7 @@ void dumpLibs()
     {
         compareVersions("libxml2",
             LIBXML_VERSION_STRING LIBXML_VERSION_EXTRA,
-            *xmlVersion);
+            xmlVersion);
     }
 #endif  // ENABLE_LIBXML
 #ifdef USE_SDL2
diff --git a/src/utils/xml/libxml.cpp b/src/utils/xml/libxml.cpp
index f7d90ff..1a89772 100644
--- a/src/utils/xml/libxml.cpp
+++ b/src/utils/xml/libxml.cpp
@@ -23,6 +23,7 @@
 
 #ifdef ENABLE_LIBXML
 
+#include <libxml/parser.h>
 #include "utils/xml/libxml.h"
 
 #include "fs/virtfs/fs.h"
openSUSE Build Service is sponsored by