mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-12 14:13:36 +00:00
a6c530b860
Signed-off-by: Kevin Williams <admin@utermux.dev> Co-authored-by: Twaik Yont <twaikyont@gmail.com> Co-Authored-By: Chongyun Lee <45286352+licy183@users.noreply.github.com>
48 lines
2.1 KiB
Diff
48 lines
2.1 KiB
Diff
From 2cea5a12a35b396800296cb1c3ea08eb00b29760 Mon Sep 17 00:00:00 2001
|
|
From: Even Rouault <even.rouault@spatialys.com>
|
|
Date: Sat, 18 Nov 2023 22:13:46 +0100
|
|
Subject: [PATCH] Fix compilation errors with libxml2 2.12
|
|
|
|
---
|
|
src/mapows.c | 2 +-
|
|
src/mapwcs.cpp | 2 +-
|
|
src/mapwcs20.cpp | 2 +-
|
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff -uNr mapserver-8.0.1/mapows.c mapserver-8.0.1.mod/mapows.c
|
|
--- mapserver-8.0.1/mapows.c 2023-04-18 01:26:04.000000000 +0800
|
|
+++ mapserver-8.0.1.mod/mapows.c 2023-12-16 14:07:14.938997359 +0800
|
|
@@ -168,7 +168,7 @@
|
|
#endif
|
|
if (ows_request->document == NULL
|
|
|| (root = xmlDocGetRootElement(ows_request->document)) == NULL) {
|
|
- xmlErrorPtr error = xmlGetLastError();
|
|
+ const xmlError *error = xmlGetLastError();
|
|
msSetError(MS_OWSERR, "XML parsing error: %s",
|
|
"msOWSPreParseRequest()", error->message);
|
|
return MS_FAILURE;
|
|
diff -uNr mapserver-8.0.1/mapwcs.cpp mapserver-8.0.1.mod/mapwcs.cpp
|
|
--- mapserver-8.0.1/mapwcs.cpp 2023-04-18 01:26:04.000000000 +0800
|
|
+++ mapserver-8.0.1.mod/mapwcs.cpp 2023-12-16 14:07:36.230997351 +0800
|
|
@@ -362,7 +362,7 @@
|
|
/* parse to DOM-Structure and get root element */
|
|
if((doc = xmlParseMemory(request->postrequest, strlen(request->postrequest)))
|
|
== NULL) {
|
|
- xmlErrorPtr error = xmlGetLastError();
|
|
+ const xmlError *error = xmlGetLastError();
|
|
msSetError(MS_WCSERR, "XML parsing error: %s",
|
|
"msWCSParseRequest()", error->message);
|
|
return MS_FAILURE;
|
|
diff -uNr mapserver-8.0.1/mapwcs20.cpp mapserver-8.0.1.mod/mapwcs20.cpp
|
|
--- mapserver-8.0.1/mapwcs20.cpp 2023-04-18 01:26:04.000000000 +0800
|
|
+++ mapserver-8.0.1.mod/mapwcs20.cpp 2023-12-16 14:07:52.810997344 +0800
|
|
@@ -1446,7 +1446,7 @@
|
|
|
|
/* parse to DOM-Structure and get root element */
|
|
if(doc == NULL) {
|
|
- xmlErrorPtr error = xmlGetLastError();
|
|
+ const xmlError *error = xmlGetLastError();
|
|
msSetError(MS_WCSERR, "XML parsing error: %s",
|
|
"msWCSParseRequest20()", error->message);
|
|
return MS_FAILURE;
|