Remove OS deps from tclPosixStr.c (EOPNOTSUPP/ENOTSUP errnos)
This commit is contained in:
@@ -347,11 +347,9 @@ 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
|
||||||
@@ -361,7 +359,7 @@ Tcl_ErrnoId()
|
|||||||
#ifdef ENXIO
|
#ifdef ENXIO
|
||||||
case ENXIO: return "ENXIO";
|
case ENXIO: return "ENXIO";
|
||||||
#endif
|
#endif
|
||||||
#ifdef EOPNOTSUPP
|
#if defined(EOPNOTSUPP) && (!defined(ENOTSUP) || (EOPNOTSUPP != ENOTSUP))
|
||||||
case EOPNOTSUPP: return "EOPNOTSUPP";
|
case EOPNOTSUPP: return "EOPNOTSUPP";
|
||||||
#endif
|
#endif
|
||||||
#ifdef EPERM
|
#ifdef EPERM
|
||||||
@@ -796,11 +794,9 @@ 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
|
||||||
@@ -810,7 +806,7 @@ Tcl_ErrnoMsg(err)
|
|||||||
#ifdef ENXIO
|
#ifdef ENXIO
|
||||||
case ENXIO: return "no such device or address";
|
case ENXIO: return "no such device or address";
|
||||||
#endif
|
#endif
|
||||||
#ifdef EOPNOTSUPP
|
#if defined(EOPNOTSUPP) && (!defined(ENOTSUP) || (EOPNOTSUPP != ENOTSUP))
|
||||||
case EOPNOTSUPP: return "operation not supported on socket";
|
case EOPNOTSUPP: return "operation not supported on socket";
|
||||||
#endif
|
#endif
|
||||||
#ifdef EPERM
|
#ifdef EPERM
|
||||||
|
|||||||
Reference in New Issue
Block a user