diff options
author | gahr <gahr@FreeBSD.org> | 2012-09-18 18:47:02 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2012-09-18 18:47:02 +0800 |
commit | e5f6aa68c635bf1257a95a97643c0102378f2f06 (patch) | |
tree | e8292877e5ed50d389c3f229c02075b42304dac5 /lang/itcl | |
parent | 4b81dcf67c408429b2ab0fa3ff2b08e5e180c2c5 (diff) | |
download | freebsd-ports-gnome-e5f6aa68c635bf1257a95a97643c0102378f2f06.tar.gz freebsd-ports-gnome-e5f6aa68c635bf1257a95a97643c0102378f2f06.tar.zst freebsd-ports-gnome-e5f6aa68c635bf1257a95a97643c0102378f2f06.zip |
- Fix build against Tcl 8.6
PR: 171208
Submitted by: gahr
Approved by: maintainer (timeout > 15 days)
Diffstat (limited to 'lang/itcl')
-rw-r--r-- | lang/itcl/files/patch-warnings | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/lang/itcl/files/patch-warnings b/lang/itcl/files/patch-warnings index 9563345fbac6..f313a078d9dc 100644 --- a/lang/itcl/files/patch-warnings +++ b/lang/itcl/files/patch-warnings @@ -142,12 +142,23 @@ + const char **listv; cmdName = ckalloc((unsigned)strlen(name)+1); ---- generic/itclInt.h 2008-12-15 15:02:58.000000000 -0500 -+++ generic/itclInt.h 2010-01-24 15:15:06.000000000 -0500 -@@ -207,5 +207,5 @@ +--- generic/itclInt.h.orig 2008-12-15 21:02:58.000000000 +0100 ++++ generic/itclInt.h 2012-08-31 16:07:23.000000000 +0200 +@@ -63,7 +63,7 @@ + #if (TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION < 6) + #define ERRORLINE(interp) ((interp)->errorLine) + #else +-#define ERRORLINE(interp) (Tcl_GetErrorLine(interp)) ++#define ERRORLINE(interp) (Tcl_GetErrorLine((Tcl_Interp *)interp)) + #endif + + #define ITCL_TCL_PRE_8_5 (TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION < 5) +@@ -206,7 +206,7 @@ + Tcl_HashEntry entry; } ItclVarInHash; -#define ItclOffset(type, field) ((int) ((char *) &((type *) 0)->field)) +#define ItclOffset(type, field) ((intptr_t)((char *) &((type *) 0)->field)) #define itclOldRuntime (itclVarFlagOffset!=0) + |