Attachment "tcl75p1.patch" to
ticket [418869ffff]
added by
dgp
2001-04-25 23:27:50.
Index: generic/tclPosixStr.c
===================================================================
RCS file: /home/cvs/cvsroot/sun/tcl/generic/tclPosixStr.c,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.2.1
diff -u -r1.1.1.1 -r1.1.1.1.2.1
--- generic/tclPosixStr.c 1997/08/14 16:46:58 1.1.1.1
+++ generic/tclPosixStr.c 2000/09/28 14:55:23 1.1.1.1.2.1
@@ -336,7 +336,7 @@
#ifdef ENXIO
case ENXIO: return "ENXIO";
#endif
-#ifdef EOPNOTSUPP
+#if defined(EOPNOTSUPP) && (!defined(ENOTSUP) || (ENOTSUP != EOPNOTSUPP))
case EOPNOTSUPP: return "EOPNOTSUPP";
#endif
#ifdef EPERM
@@ -783,7 +783,7 @@
#ifdef ENXIO
case ENXIO: return "no such device or address";
#endif
-#ifdef EOPNOTSUPP
+#if defined(EOPNOTSUPP) && (!defined(ENOTSUP) || (ENOTSUP != EOPNOTSUPP))
case EOPNOTSUPP: return "operation not supported on socket";
#endif
#ifdef EPERM
Index: unix/Makefile.in
===================================================================
RCS file: /home/cvs/cvsroot/sun/tcl/unix/Makefile.in,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile.in
--- unix/Makefile.in 1997/08/14 16:46:57 1.1.1.1
+++ unix/Makefile.in 2001/04/25 16:26:23
@@ -71,6 +71,8 @@
# To change the compiler switches, for example to change from -O
# to -g, change the following line:
CFLAGS = -O
+# For compiling on Alpha, -mieee will prevent crashes on FPEs.
+#CFLAGS = -O -mieee
# To disable ANSI-C procedure prototypes reverse the comment characters
# on the following lines: