mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 06:07:00 +02:00
cegui: fix build for libxml2 2.12
This commit is contained in:
parent
f965e219ad
commit
c7b8c9c0bf
1 changed files with 26 additions and 0 deletions
26
srcpkgs/cegui/patches/fix-libxml2-2.12.patch
Normal file
26
srcpkgs/cegui/patches/fix-libxml2-2.12.patch
Normal file
|
@ -0,0 +1,26 @@
|
|||
From 285ba5a2c0c435ed865c6e86afe314a822fd1e3f Mon Sep 17 00:00:00 2001
|
||||
From: oreo639 <oreo6391@gmail.com>
|
||||
Date: Sun, 18 Feb 2024 14:16:21 -0800
|
||||
Subject: [PATCH] Fix return type of xmlGetLastError for libxml2 2.12
|
||||
|
||||
https://gitlab.gnome.org/GNOME/libxml2/-/commit/45470611b047db78106dcb2fdbd4164163c15ab7
|
||||
---
|
||||
cegui/src/XMLParserModules/Libxml2/XMLParser.cpp | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/cegui/src/XMLParserModules/Libxml2/XMLParser.cpp b/cegui/src/XMLParserModules/Libxml2/XMLParser.cpp
|
||||
index 74a3dbddd..a408f9305 100644
|
||||
--- a/cegui/src/XMLParserModules/Libxml2/XMLParser.cpp
|
||||
+++ b/cegui/src/XMLParserModules/Libxml2/XMLParser.cpp
|
||||
@@ -109,7 +109,11 @@ void LibxmlParser::parseXML(XMLHandler& handler,
|
||||
|
||||
if (!doc)
|
||||
{
|
||||
+#if LIBXML_VERSION >= 21200
|
||||
+ const xmlError* err = xmlGetLastError();
|
||||
+#else
|
||||
xmlError* err = xmlGetLastError();
|
||||
+#endif
|
||||
|
||||
throw GenericException(
|
||||
String("xmlParseMemory failed in file: '") +
|
Loading…
Add table
Reference in a new issue