Przeglądaj źródła

ERR: SIGSEGV == SIGBUS on BeOS.

Brad King 22 lat temu
rodzic
commit
aeea4895a5
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      Source/kwsys/ProcessUNIX.c

+ 2 - 0
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;