From: Dmitry Volyntsev Date: Tue, 28 Nov 2023 02:43:36 +0000 (-0800) Subject: XML: fixed building with libxml2 2.12 and later. X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=239fc64f726a61ff54cc07e041472cb305633560;p=njs.git XML: fixed building with libxml2 2.12 and later. This fixes #684 issue on Github. --- diff --git a/external/njs_xml_module.c b/external/njs_xml_module.c index 0baaea54..a2be4d7f 100644 --- a/external/njs_xml_module.c +++ b/external/njs_xml_module.c @@ -1986,10 +1986,10 @@ njs_xml_nset_cleanup(void *data) static void njs_xml_error(njs_vm_t *vm, njs_xml_doc_t *current, const char *fmt, ...) { - u_char *p, *last; - va_list args; - xmlError *err; - u_char errstr[NJS_MAX_ERROR_STR]; + u_char *p, *last; + va_list args; + const xmlError *err; + u_char errstr[NJS_MAX_ERROR_STR]; last = &errstr[NJS_MAX_ERROR_STR];