Tcl Source Code

Artifact [6fb233c941]
Login

Artifact 6fb233c941782df2da14a08888cc11f178b8b94a:

Attachment "tcl76p2.patch" to ticket [418869ffff] added by dgp 2001-04-25 23:31:32.
Index: generic/tclPosixStr.c
===================================================================
RCS file: /home/cvs/cvsroot/sun/tcl/generic/tclPosixStr.c,v
retrieving revision 1.1.1.2
retrieving revision 1.1.1.2.2.1
diff -u -r1.1.1.2 -r1.1.1.2.2.1
--- generic/tclPosixStr.c	1997/08/14 17:01:32	1.1.1.2
+++ generic/tclPosixStr.c	2000/09/28 15:10:29	1.1.1.2.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.2
diff -u -r1.1.1.2 Makefile.in
--- unix/Makefile.in	1997/08/14 17:01:29	1.1.1.2
+++ unix/Makefile.in	2001/04/25 16:30:44
@@ -74,6 +74,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: