mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
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:
parent
12598a4780
commit
b069127485
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue