summaryrefslogtreecommitdiffstats
path: root/generic/tclPosixStr.c
diff options
context:
space:
mode:
authorstanton <stanton@noemail.net>1999-02-02 22:27:16 (GMT)
committerstanton <stanton@noemail.net>1999-02-02 22:27:16 (GMT)
commitccb9402700b710a23919666516d382b00aa9d790 (patch)
tree2ed3129031ec14e001064caba092dd27224b495c /generic/tclPosixStr.c
parenta1e5cc7466b77a6c27da6ee0fe9d3f178cecb35a (diff)
downloadtcl-ccb9402700b710a23919666516d382b00aa9d790.zip
tcl-ccb9402700b710a23919666516d382b00aa9d790.tar.gz
tcl-ccb9402700b710a23919666516d382b00aa9d790.tar.bz2
* generic/tclPosixStr.c (Tcl_ErrnoId, Tcl_ErrnoMsg): When using
egcs, ENOTSUP and EOPNOTSUPP are the same, so now we handle that case. [Bug: 1137] FossilOrigin-Name: 53c251c547c609480f324a8903b5d3c000c2bf54
Diffstat (limited to 'generic/tclPosixStr.c')
-rw-r--r--generic/tclPosixStr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclPosixStr.c b/generic/tclPosixStr.c
index 8c7c5ad..84f2d1a 100644
--- a/generic/tclPosixStr.c
+++ b/generic/tclPosixStr.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclPosixStr.c,v 1.2 1998/09/14 18:40:01 stanton Exp $
+ * RCS: @(#) $Id: tclPosixStr.c,v 1.3 1999/02/02 22:27:16 stanton Exp $
*/
#include "tclInt.h"
@@ -336,7 +336,7 @@ Tcl_ErrnoId()
#ifdef ENXIO
case ENXIO: return "ENXIO";
#endif
-#ifdef EOPNOTSUPP
+#if defined(EOPNOTSUPP) && (!defined(ENOTSUP) || (ENOTSUP != EOPNOTSUPP))
case EOPNOTSUPP: return "EOPNOTSUPP";
#endif
#ifdef EPERM
@@ -783,7 +783,7 @@ Tcl_ErrnoMsg(err)
#ifdef ENXIO
case ENXIO: return "no such device or address";
#endif
-#ifdef EOPNOTSUPP
+#if defined(EOPNOTSUPP) && (!defined(ENOTSUP) || (ENOTSUP != EOPNOTSUPP))
case EOPNOTSUPP: return "operation not supported on socket";
#endif
#ifdef EPERM