2b3f628a12
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=149
51 lines
2.0 KiB
Diff
51 lines
2.0 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
|
|
|
|
---
|
|
mapows.c | 2 +-
|
|
mapwcs.cpp | 2 +-
|
|
mapwcs20.cpp | 2 +-
|
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
Index: mapserver-8.0.1/mapows.c
|
|
===================================================================
|
|
--- mapserver-8.0.1.orig/mapows.c
|
|
+++ mapserver-8.0.1/mapows.c
|
|
@@ -168,7 +168,7 @@ static int msOWSPreParseRequest(cgiReque
|
|
#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;
|
|
Index: mapserver-8.0.1/mapwcs.cpp
|
|
===================================================================
|
|
--- mapserver-8.0.1.orig/mapwcs.cpp
|
|
+++ mapserver-8.0.1/mapwcs.cpp
|
|
@@ -362,7 +362,7 @@ static int msWCSParseRequest(cgiRequestO
|
|
/* 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;
|
|
Index: mapserver-8.0.1/mapwcs20.cpp
|
|
===================================================================
|
|
--- mapserver-8.0.1.orig/mapwcs20.cpp
|
|
+++ mapserver-8.0.1/mapwcs20.cpp
|
|
@@ -1446,7 +1446,7 @@ int msWCSParseRequest20(mapObj *map,
|
|
|
|
/* 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;
|