ports/devel/tclxml/files/patch-tclxml.c
Pietro Cerutti af36765e17 devel/tclxml: fix build with libxml2 >= 2.12
Version 2.12 of libxml2 introduced a backwards incompatible change in
the signature of some functions, notably the second argument to
xmlStructuredErrorFunc has gained a const qualifier, changing from
`xmlError *error` to `const xmlError *error`.

To make the signatures compatible with both pre- and post-2.12, I have
introduced a check on LIBXML_VERSION.

PR:		279968
Reported by:    dizzy
2024-07-01 06:49:49 +00:00

11 lines
362 B
C

--- tclxml.c.orig 2013-03-30 17:17:07 UTC
+++ tclxml.c
@@ -20,6 +20,8 @@
#include <tclxslt/tclxslt.h>
#include <string.h>
+int Tcldom_libxml2_Init ( Tcl_Interp *interp );
+
#define TCL_DOES_STUBS \
(TCL_MAJOR_VERSION > 8 || TCL_MAJOR_VERSION == 8 && (TCL_MINOR_VERSION > 1 || \
(TCL_MINOR_VERSION == 1 && TCL_RELEASE_LEVEL == TCL_FINAL_RELEASE)))