pidginPackages.pidgin-sipe: fix compilation error with libxml2 (#406843)

This commit is contained in:
Aleksana
2025-05-26 12:54:19 +08:00
committed by GitHub
2 changed files with 22 additions and 0 deletions
@@ -0,0 +1,21 @@
diff --git a/src/core/sipe-xml.c b/src/core/sipe-xml.c
index cfc5311..c38f6e8 100644
--- a/src/core/sipe-xml.c
+++ b/src/core/sipe-xml.c
@@ -29,6 +29,7 @@
#include <time.h>
#include "libxml/parser.h"
+#include "libxml/xmlerror.h"
#include "libxml/c14n.h"
#include "libxml/xmlversion.h"
@@ -154,7 +155,7 @@ static void callback_error(void *user_data, const char *msg, ...)
g_free(errmsg);
}
-static void callback_serror(void *user_data, xmlErrorPtr error)
+static void callback_serror(void *user_data, const xmlError *error)
{
struct _parser_data *pd = user_data;
@@ -31,6 +31,7 @@ stdenv.mkDerivation rec {
url = "https://repo.or.cz/siplcs.git/patch/583a734e63833f03d11798b7b0d59a17d08ae60f";
sha256 = "Ai6Czpy/FYvBi4GZR7yzch6OcouJgfreI9HcojhGVV4=";
})
./0001-fix-libxml-error-signature.patch
];
nativeBuildInputs = [ intltool ];