fixup Fix to build with libxml 2.12.x (fixes #505) 16/308116/1 accepted/tizen_unified accepted/tizen_unified_x tizen accepted/tizen/unified/20240328.043717 accepted/tizen/unified/x/20240328.090635
authorJinWang An <jinwang.an@samsung.com>
Mon, 18 Mar 2024 07:04:55 +0000 (16:04 +0900)
committerJinWang An <jinwang.an@samsung.com>
Mon, 18 Mar 2024 07:04:55 +0000 (16:04 +0900)
Change-Id: Ib686b97661a94550deb2ffc6b6d6b32cbec512f2
Signed-off-by: JinWang An <jinwang.an@samsung.com>
zypp/parser/xml/Reader.cc

index dc7c81a..abbad78 100644 (file)
@@ -50,7 +50,11 @@ namespace zypp
 
 
       std::list<std::string> structuredErrors;
-      void structuredErrorFunc( void * userData, xmlErrorPtr error )
+ #if LIBXML_VERSION >= 21200
+       void structuredErrorFunc( void * userData, const xmlError * error )
+ #else
+       void structuredErrorFunc( void * userData, xmlError * error )
+ #endif
       {
        if ( error )
        {