From: Jon Trulson Date: Tue, 19 Jun 2012 23:18:00 +0000 (-0600) Subject: Remove OS deps from tclPosixStr.c (EOPNOTSUPP/ENOTSUP errnos) X-Git-Tag: 2.2.0a~26^2~14 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8e0523ff02ef98c3dbbd8e8c876435c858e559ac;p=oweals%2Fcde.git Remove OS deps from tclPosixStr.c (EOPNOTSUPP/ENOTSUP errnos) --- diff --git a/cde/programs/dtdocbook/tcl/tclPosixStr.c b/cde/programs/dtdocbook/tcl/tclPosixStr.c index cce2c7aa..6ad2f74e 100644 --- a/cde/programs/dtdocbook/tcl/tclPosixStr.c +++ b/cde/programs/dtdocbook/tcl/tclPosixStr.c @@ -347,11 +347,9 @@ 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 @@ -361,7 +359,7 @@ Tcl_ErrnoId() #ifdef ENXIO case ENXIO: return "ENXIO"; #endif -#ifdef EOPNOTSUPP +#if defined(EOPNOTSUPP) && (!defined(ENOTSUP) || (EOPNOTSUPP != ENOTSUP)) case EOPNOTSUPP: return "EOPNOTSUPP"; #endif #ifdef EPERM @@ -796,11 +794,9 @@ 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 @@ -810,7 +806,7 @@ Tcl_ErrnoMsg(err) #ifdef ENXIO case ENXIO: return "no such device or address"; #endif -#ifdef EOPNOTSUPP +#if defined(EOPNOTSUPP) && (!defined(ENOTSUP) || (EOPNOTSUPP != ENOTSUP)) case EOPNOTSUPP: return "operation not supported on socket"; #endif #ifdef EPERM