summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2009-10-21 13:54:45 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2009-10-21 13:54:45 (GMT)
commitfdcd9d45ff7ee98fcf1fb2b950963234e42abf54 (patch)
tree0a1f5c7e7f28eb257f5c885a99032f5c79378aa4 /generic
parent6a8b66f230e8c7c863fc4ad7f4b7ecedf04aade9 (diff)
downloadtcl-fdcd9d45ff7ee98fcf1fb2b950963234e42abf54.zip
tcl-fdcd9d45ff7ee98fcf1fb2b950963234e42abf54.tar.gz
tcl-fdcd9d45ff7ee98fcf1fb2b950963234e42abf54.tar.bz2
Fix [Bug 2882561].
Diffstat (limited to 'generic')
-rw-r--r--generic/tclPosixStr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclPosixStr.c b/generic/tclPosixStr.c
index 31fccba..f8c410c 100644
--- a/generic/tclPosixStr.c
+++ b/generic/tclPosixStr.c
@@ -10,7 +10,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.12.10.1 2009/03/15 15:38:19 dkf Exp $
+ * RCS: @(#) $Id: tclPosixStr.c,v 1.12.10.2 2009/10/21 13:54:45 dkf Exp $
*/
#include "tclInt.h"
@@ -994,7 +994,7 @@ Tcl_SignalId(
#ifdef SIGQUIT
case SIGQUIT: return "SIGQUIT";
#endif
-#ifdef SIGSEGV
+#if defined(SIGSEGV) && (!defined(SIGBUS) || (SIGSEGV != SIGBUS))
case SIGSEGV: return "SIGSEGV";
#endif
#ifdef SIGSTOP
@@ -1128,7 +1128,7 @@ Tcl_SignalMsg(
#ifdef SIGQUIT
case SIGQUIT: return "quit signal";
#endif
-#ifdef SIGSEGV
+#if defined(SIGSEGV) && (!defined(SIGBUS) || (SIGSEGV != SIGBUS))
case SIGSEGV: return "segmentation violation";
#endif
#ifdef SIGSTOP