From: Peter Howkins Date: Mon, 12 Mar 2012 11:26:01 +0000 (+0000) Subject: Linux has the same value for ENOTSUP as another var, therefore protect one X-Git-Tag: 2.2.0a~26^2~105 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b0691274852021e17a723f1cfc1a70d61d32d857;p=oweals%2Fcde.git Linux has the same value for ENOTSUP as another var, therefore protect one to prevent a duplicate case issue in the switch(). --- diff --git a/cde/programs/dtdocbook/tcl/tclPosixStr.c b/cde/programs/dtdocbook/tcl/tclPosixStr.c index 376defba..cce2c7aa 100644 --- a/cde/programs/dtdocbook/tcl/tclPosixStr.c +++ b/cde/programs/dtdocbook/tcl/tclPosixStr.c @@ -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