Linux has the same value for ENOTSUP as another var, therefore protect one
to prevent a duplicate case issue in the switch().
This commit is contained in:
@@ -347,9 +347,11 @@ Tcl_ErrnoId()
|
|||||||
#ifdef ENOTSOCK
|
#ifdef ENOTSOCK
|
||||||
case ENOTSOCK: return "ENOTSOCK";
|
case ENOTSOCK: return "ENOTSOCK";
|
||||||
#endif
|
#endif
|
||||||
|
#if !defined(linux)
|
||||||
#ifdef ENOTSUP
|
#ifdef ENOTSUP
|
||||||
case ENOTSUP: return "ENOTSUP";
|
case ENOTSUP: return "ENOTSUP";
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#ifdef ENOTTY
|
#ifdef ENOTTY
|
||||||
case ENOTTY: return "ENOTTY";
|
case ENOTTY: return "ENOTTY";
|
||||||
#endif
|
#endif
|
||||||
@@ -794,9 +796,11 @@ Tcl_ErrnoMsg(err)
|
|||||||
#ifdef ENOTSOCK
|
#ifdef ENOTSOCK
|
||||||
case ENOTSOCK: return "socket operation on non-socket";
|
case ENOTSOCK: return "socket operation on non-socket";
|
||||||
#endif
|
#endif
|
||||||
|
#if !defined(linux)
|
||||||
#ifdef ENOTSUP
|
#ifdef ENOTSUP
|
||||||
case ENOTSUP: return "operation not supported";
|
case ENOTSUP: return "operation not supported";
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#ifdef ENOTTY
|
#ifdef ENOTTY
|
||||||
case ENOTTY: return "inappropriate device for ioctl";
|
case ENOTTY: return "inappropriate device for ioctl";
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user