Linux has the same value for ENOTSUP as another var, therefore protect one
authorPeter Howkins <flibble@users.sourceforge.net>
Mon, 12 Mar 2012 11:26:01 +0000 (11:26 +0000)
committerPeter Howkins <flibble@users.sourceforge.net>
Mon, 12 Mar 2012 11:26:01 +0000 (11:26 +0000)
to prevent a duplicate case issue in the switch().

cde/programs/dtdocbook/tcl/tclPosixStr.c

index 376defbafcdbd93a022c347fff6b2da9a4631b82..cce2c7aae28781f115c74e9ed705d20a59d26955 100644 (file)
@@ -347,9 +347,11 @@ Tcl_ErrnoId()
 #ifdef ENOTSOCK
        case ENOTSOCK: return "ENOTSOCK";
 #endif
+#if !defined(linux)
 #ifdef ENOTSUP
        case ENOTSUP: return "ENOTSUP";
 #endif
+#endif
 #ifdef ENOTTY
        case ENOTTY: return "ENOTTY";
 #endif
@@ -794,9 +796,11 @@ Tcl_ErrnoMsg(err)
 #ifdef ENOTSOCK
        case ENOTSOCK: return "socket operation on non-socket";
 #endif
+#if !defined(linux)
 #ifdef ENOTSUP
        case ENOTSUP: return "operation not supported";
 #endif
+#endif
 #ifdef ENOTTY
        case ENOTTY: return "inappropriate device for ioctl";
 #endif