mirror of
https://git.freebsd.org/ports.git
synced 2025-05-27 16:36:28 -04:00
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
11 lines
362 B
C
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)))
|