aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libosmscout/fix-libxml2.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libosmscout/fix-libxml2.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libosmscout/fix-libxml2.patch')
-rw-r--r--vcpkg/ports/libosmscout/fix-libxml2.patch26
1 files changed, 26 insertions, 0 deletions
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<GpxParser*>(data);
+ parser->Error("XML error, line " + std::to_string(error->line) + ": " + error->message);