summarylogtreecommitdiffstats
path: root/compile-with-newer-libxml2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'compile-with-newer-libxml2.patch')
-rw-r--r--compile-with-newer-libxml2.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/compile-with-newer-libxml2.patch b/compile-with-newer-libxml2.patch
new file mode 100644
index 000000000000..57508e37056c
--- /dev/null
+++ b/compile-with-newer-libxml2.patch
@@ -0,0 +1,20 @@
+--- src/backend/utils/adt/xml.c 2024-01-01 12:01:49.570101240 +0100
++++ src/backend/utils/adt/xml.c 2024-01-01 12:02:17.888276684 +0100
+@@ -119,7 +119,7 @@
+
+ static xmlParserInputPtr xmlPgEntityLoader(const char *URL, const char *ID,
+ xmlParserCtxtPtr ctxt);
+-static void xml_errorHandler(void *data, xmlErrorPtr error);
++static void xml_errorHandler(void *data, const xmlError *error);
+ static void xml_ereport_by_code(int level, int sqlcode,
+ const char *msg, int errcode);
+ static void chopStringInfoNewlines(StringInfo str);
+@@ -1750,7 +1750,7 @@
+ * Error handler for libxml errors and warnings
+ */
+ static void
+-xml_errorHandler(void *data, xmlErrorPtr error)
++xml_errorHandler(void *data, const xmlError *error)
+ {
+ PgXmlErrorContext *xmlerrcxt = (PgXmlErrorContext *) data;
+ xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) error->ctxt;