From 54409423f767d8b1cf30cb7d0efca6b4ca138823 Mon Sep 17 00:00:00 2001 From: Ethan Morgan Date: Sat, 14 Feb 2026 16:44:06 +0000 Subject: move to own git server --- vcpkg/ports/libosmscout/fix-libxml2.patch | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 vcpkg/ports/libosmscout/fix-libxml2.patch (limited to 'vcpkg/ports/libosmscout/fix-libxml2.patch') diff --git a/vcpkg/ports/libosmscout/fix-libxml2.patch b/vcpkg/ports/libosmscout/fix-libxml2.patch new file mode 100644 index 0000000..46815c2 --- /dev/null +++ b/vcpkg/ports/libosmscout/fix-libxml2.patch @@ -0,0 +1,26 @@ +diff --git a/libosmscout-import/src/osmscout/import/PreprocessOSM.cpp b/libosmscout-import/src/osmscout/import/PreprocessOSM.cpp +index acf2ed97c4..9f006aa7ac 100644 +--- a/libosmscout-import/src/osmscout/import/PreprocessOSM.cpp ++++ b/libosmscout-import/src/osmscout/import/PreprocessOSM.cpp +@@ -339,7 +339,7 @@ namespace osmscout { + return xmlGetPredefinedEntity(name); + } + +- static void StructuredErrorHandler(void* /*data*/, xmlErrorPtr error) ++ static void StructuredErrorHandler(void* /*data*/, const xmlError* error) + { + std::cerr << "XML error, line " << error->line << ": " << error->message << std::endl; + } +diff --git a/libosmscout-gpx/src/osmscout/gpx/Import.cpp b/libosmscout-gpx/src/osmscout/gpx/Import.cpp +index a18648fd34..d2492324e0 100644 +--- a/libosmscout-gpx/src/osmscout/gpx/Import.cpp ++++ b/libosmscout-gpx/src/osmscout/gpx/Import.cpp +@@ -288,7 +288,7 @@ public: + return xmlGetPredefinedEntity(name); + } + +- static void StructuredErrorHandler(void* data, xmlErrorPtr error) ++ static void StructuredErrorHandler(void* data, const xmlError* error) + { + auto* parser=static_cast(data); + parser->Error("XML error, line " + std::to_string(error->line) + ": " + error->message); -- cgit v1.2.3