summarylogtreecommitdiffstats
path: root/mapnik-libxml2_loader.patch
diff options
context:
space:
mode:
authorDavid Hummel2023-11-20 11:05:14 -0700
committerDavid Hummel2023-11-20 11:05:14 -0700
commit4aaf684b86e2b7928d0d512685fc4ca96692ecd0 (patch)
tree5df5a9151c21c34b2c47b75cf9645917b2b689bc /mapnik-libxml2_loader.patch
parentfa462e39b229ebb45905bac24ae0878545c6938e (diff)
downloadaur-4aaf684b86e2b7928d0d512685fc4ca96692ecd0.tar.gz
Fixing build after libxml2 upgrade and recent merge
Diffstat (limited to 'mapnik-libxml2_loader.patch')
-rw-r--r--mapnik-libxml2_loader.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/mapnik-libxml2_loader.patch b/mapnik-libxml2_loader.patch
new file mode 100644
index 000000000000..5e44923f6975
--- /dev/null
+++ b/mapnik-libxml2_loader.patch
@@ -0,0 +1,22 @@
+diff --git a/src/libxml2_loader.cpp b/src/libxml2_loader.cpp
+index 223d8df44..78dc8aa97 100644
+--- a/src/libxml2_loader.cpp
++++ b/src/libxml2_loader.cpp
+@@ -88,7 +88,7 @@ class libxml2_loader : util::noncopyable
+
+ if (!doc)
+ {
+- xmlError* error = xmlCtxtGetLastError(ctx_);
++ const xmlError* error = xmlCtxtGetLastError(ctx_);
+ if (error)
+ {
+ std::string msg("XML document not well formed:\n");
+@@ -128,7 +128,7 @@ class libxml2_loader : util::noncopyable
+ if (!doc)
+ {
+ std::string msg("XML document not well formed");
+- xmlError* error = xmlCtxtGetLastError(ctx_);
++ const xmlError* error = xmlCtxtGetLastError(ctx_);
+ if (error)
+ {
+ msg += ":\n";