summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-03-12 19:43:32 (GMT)
committerBrad King <brad.king@kitware.com>2004-03-12 19:43:32 (GMT)
commitaeea4895a542c406fac45e8ceb08543416520fce (patch)
tree68b889c4ba5f2f077e431901da448c84a95d0963
parent94d8d25fd3d038f592002829f8f2f5b390c13623 (diff)
downloadCMake-aeea4895a542c406fac45e8ceb08543416520fce.zip
CMake-aeea4895a542c406fac45e8ceb08543416520fce.tar.gz
CMake-aeea4895a542c406fac45e8ceb08543416520fce.tar.bz2
ERR: SIGSEGV == SIGBUS on BeOS.
-rw-r--r--Source/kwsys/ProcessUNIX.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/kwsys/ProcessUNIX.c b/Source/kwsys/ProcessUNIX.c
index 2a85696..b5c1e19 100644
--- a/Source/kwsys/ProcessUNIX.c
+++ b/Source/kwsys/ProcessUNIX.c
@@ -1476,7 +1476,9 @@ static void kwsysProcessSetExitException(kwsysProcess* cp, int sig)
case SIGSEGV: KWSYSPE_CASE(Fault, "Segmentation fault"); break;
#endif
#ifdef SIGBUS
+# if !defined(SIGSEGV) || SIGBUS != SIGSEGV
case SIGBUS: KWSYSPE_CASE(Fault, "Bus error"); break;
+# endif
#endif
#ifdef SIGFPE
case SIGFPE: KWSYSPE_CASE(Numerical, "Floating-point exception"); break;