git: 7567192944b3 - main - editors/xmlcopyeditor: Fix build with libxml2 2.12.0+

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Thu, 23 Jan 2025 10:49:22 UTC
The branch main has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7567192944b3dd3baf5023a8036cbc01f8102615

commit 7567192944b3dd3baf5023a8036cbc01f8102615
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2025-01-23 10:46:56 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2025-01-23 10:49:09 +0000

    editors/xmlcopyeditor: Fix build with libxml2 2.12.0+
    
    PR:             284272
    Obtained from:  https://sourceforge.net/p/xml-copy-editor/bugs/239/
---
 .../xmlcopyeditor/files/patch-src_wraplibxml.cpp   | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/editors/xmlcopyeditor/files/patch-src_wraplibxml.cpp b/editors/xmlcopyeditor/files/patch-src_wraplibxml.cpp
new file mode 100644
index 000000000000..dd59b228708c
--- /dev/null
+++ b/editors/xmlcopyeditor/files/patch-src_wraplibxml.cpp
@@ -0,0 +1,23 @@
+Fix with >libxml2-2.12
+https://sourceforge.net/p/xml-copy-editor/bugs/239/
+
+--- src/wraplibxml.cpp.orig	2025-01-23 10:31:01 UTC
++++ src/wraplibxml.cpp
+@@ -706,7 +706,7 @@ wxString WrapLibxml::getLastError()
+ 
+ wxString WrapLibxml::getLastError()
+ {
+-	xmlErrorPtr err = xmlGetLastError();
++	const xmlError *err = xmlGetLastError();
+ 
+ 	if ( !err )
+ 		return nonParserError;
+@@ -722,7 +722,7 @@ std::pair<int, int> WrapLibxml::getErrorPosition()
+ 
+ std::pair<int, int> WrapLibxml::getErrorPosition()
+ {
+-	xmlErrorPtr err = xmlGetLastError();
++	const xmlError *err = xmlGetLastError();
+ 	if ( !err )
+ 		return std::make_pair ( 1, 1 );
+