freebsd-ports/japanese/tcl76/files/patch-ae
Satoshi Asami 1d57184ff4 Fix compile error in 4-stable.
PR:		22654
Submitted by:	maintainer
2000-11-13 10:01:09 +00:00

20 lines
570 B
Text

--- ../generic/tclPosixStr.c~ Fri Oct 11 05:58:40 1996
+++ ../generic/tclPosixStr.c Tue Nov 7 09:11:13 2000
@@ -336,7 +336,7 @@
#ifdef ENXIO
case ENXIO: return "ENXIO";
#endif
-#ifdef EOPNOTSUPP
+#if defined(EOPNOTSUPP) && (EOPNOTSUPP != ENOTSUP)
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) && (EOPNOTSUPP != ENOTSUP)
case EOPNOTSUPP: return "operation not supported on socket";
#endif
#ifdef EPERM