summaryrefslogtreecommitdiffstats
path: root/palm
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2005-02-20 00:29:40 +0000
committerdas <das@FreeBSD.org>2005-02-20 00:29:40 +0000
commit900b559d5a8a8e9276f974929908bb99f10509e5 (patch)
treedd911036c5e015a6fbfefe66b487eea577be00bb /palm
parent2a08f14f7510130bf5c956787074823d020f8a2c (diff)
downloadFreeBSD-ports-900b559d5a8a8e9276f974929908bb99f10509e5.zip
FreeBSD-ports-900b559d5a8a8e9276f974929908bb99f10509e5.tar.gz
Remove more copies of Tcl's SunOS shared library hack.
It's worth pointing out that the Tcl project used to *recommend* that application writers copy this kludge. These ports work fine with Tcl 8.3, which provided a fake matherr() even if the OS didn't, but here's what the Tcl 8.4 changelog has to say: 2002-05-31 (dead code)[474335,555635] removed all use of matherr() (english) *** POTENTIAL INCOMPATIBILITY *** The following lines can be safely removed from any application that has them, unless compatibility with SunOS 4.X is desired. extern int matherr(); int *tclDummyMathPtr = (int *) matherr; The build problems were pointed out by Kris, as usual. ;-)
Diffstat (limited to 'palm')
-rw-r--r--palm/pilot-link-devel/files/patch-ac17
-rw-r--r--palm/pilot-link/files/patch-ac17
2 files changed, 34 insertions, 0 deletions
diff --git a/palm/pilot-link-devel/files/patch-ac b/palm/pilot-link-devel/files/patch-ac
new file mode 100644
index 0000000..c0f239e
--- /dev/null
+++ b/palm/pilot-link-devel/files/patch-ac
@@ -0,0 +1,17 @@
+--- bindings/Tcl/tclAppInit.c.orig Sat Feb 19 19:14:05 2005
++++ bindings/Tcl/tclAppInit.c Sat Feb 19 19:14:16 2005
+@@ -15,14 +15,6 @@
+
+ #include "tcl.h"
+
+-/*
+- * The following variable is a special hack that is needed in order for
+- * Sun shared libraries to be used for Tcl.
+- */
+-
+-extern int matherr();
+-int *tclDummyMathPtr = (int *) matherr;
+-
+ EXTERN int Pitcl_Init _ANSI_ARGS_((Tcl_Interp *interp));
+
+ #ifdef TCL_TEST
diff --git a/palm/pilot-link/files/patch-ac b/palm/pilot-link/files/patch-ac
new file mode 100644
index 0000000..c0f239e
--- /dev/null
+++ b/palm/pilot-link/files/patch-ac
@@ -0,0 +1,17 @@
+--- bindings/Tcl/tclAppInit.c.orig Sat Feb 19 19:14:05 2005
++++ bindings/Tcl/tclAppInit.c Sat Feb 19 19:14:16 2005
+@@ -15,14 +15,6 @@
+
+ #include "tcl.h"
+
+-/*
+- * The following variable is a special hack that is needed in order for
+- * Sun shared libraries to be used for Tcl.
+- */
+-
+-extern int matherr();
+-int *tclDummyMathPtr = (int *) matherr;
+-
+ EXTERN int Pitcl_Init _ANSI_ARGS_((Tcl_Interp *interp));
+
+ #ifdef TCL_TEST
OpenPOWER on IntegriCloud