1 --- postgresql-16.1/src/backend/utils/adt/xml.c.orig 2023-11-06 23:04:27.000000000 +0100
2 +++ postgresql-16.1/src/backend/utils/adt/xml.c 2023-12-22 01:16:10.408867469 +0100
4 xmlParserCtxtPtr ctxt);
5 static void xml_errsave(Node *escontext, PgXmlErrorContext *errcxt,
6 int sqlcode, const char *msg);
7 +#if defined(LIBXML_VERSION) && LIBXML_VERSION >= 21200
8 +static void xml_errorHandler(void *data, const xmlError *error);
10 static void xml_errorHandler(void *data, xmlErrorPtr error);
12 static int errdetail_for_xml_code(int code);
13 static void chopStringInfoNewlines(StringInfo str);
14 static void appendStringInfoLineSeparator(StringInfo str);
15 @@ -2001,8 +2005,13 @@
17 * Error handler for libxml errors and warnings
19 +#if defined(LIBXML_VERSION) && LIBXML_VERSION >= 21200
21 +xml_errorHandler(void *data, const xmlError *error)
24 xml_errorHandler(void *data, xmlErrorPtr error)
27 PgXmlErrorContext *xmlerrcxt = (PgXmlErrorContext *) data;
28 xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) error->ctxt;