summaryrefslogtreecommitdiffstats
path: root/generic/tclPosixStr.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-08-03 18:12:14 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-08-03 18:12:14 (GMT)
commit92c2318f0bcf65d962079a1dc6cec0326921a2b5 (patch)
treead50a33fed1cf15445a811ad36b2dfe3699d3bea /generic/tclPosixStr.c
parentaf556848dde348585c87d0115a8de6c77356b3c1 (diff)
downloadtcl-92c2318f0bcf65d962079a1dc6cec0326921a2b5.zip
tcl-92c2318f0bcf65d962079a1dc6cec0326921a2b5.tar.gz
tcl-92c2318f0bcf65d962079a1dc6cec0326921a2b5.tar.bz2
Fix build on systems where ECANCELED == ELIBMAX
Diffstat (limited to 'generic/tclPosixStr.c')
-rw-r--r--generic/tclPosixStr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclPosixStr.c b/generic/tclPosixStr.c
index b722336..d0002ec 100644
--- a/generic/tclPosixStr.c
+++ b/generic/tclPosixStr.c
@@ -203,7 +203,7 @@ Tcl_ErrnoId(void)
#ifdef ELIBEXEC
case ELIBEXEC: return "ELIBEXEC";
#endif
-#ifdef ELIBMAX
+#if defined(ELIBMAX) && (!defined(ECANCELED) || (ELIBMAX != ECANCELED))
case ELIBMAX: return "ELIBMAX";
#endif
#ifdef ELIBSCN
@@ -662,7 +662,7 @@ Tcl_ErrnoMsg(
#ifdef ELIBEXEC
case ELIBEXEC: return "cannot exec a shared library directly";
#endif
-#ifdef ELIBMAX
+#if defined(ELIBMAX) && (!defined(ECANCELED) || (ELIBMAX != ECANCELED))
case ELIBMAX: return
"attempting to link in more shared libraries than system limit";
#endif