cmocka: Only handle SIGBUS and SIGSYS if the system supports it.
authorAndreas Schneider <asn@cryptomilk.org>
Mon, 9 Feb 2015 13:42:34 +0000 (14:42 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 10 Feb 2015 14:49:30 +0000 (15:49 +0100)
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
src/cmocka.c

index 8a7c9e1..56ac54a 100644 (file)
@@ -296,8 +296,12 @@ static const int exception_signals[] = {
     SIGFPE,
     SIGILL,
     SIGSEGV,
+#ifdef SIGBUS
     SIGBUS,
+#endif
+#ifdef SIGSYS
     SIGSYS,
+#endif
 };
 
 /* Default signal functions that should be restored after a test is complete. */