commit | 5c864f6448d221541c1f425f3f2593061793f2da | [log] [tgz] |
---|---|---|
author | Andreas Schneider <asn@cryptomilk.org> | Mon Feb 09 14:42:34 2015 +0100 |
committer | Andreas Schneider <asn@cryptomilk.org> | Tue Feb 10 15:49:30 2015 +0100 |
tree | 7fd74a721987d86b3ff9eb5ed82ad890c3a3ea75 | |
parent | 2c46e7dedeebac10444636356f79161a60e796e6 [diff] |
cmocka: Only handle SIGBUS and SIGSYS if the system supports it. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
diff --git a/src/cmocka.c b/src/cmocka.c index 8a7c9e1..56ac54a 100644 --- a/src/cmocka.c +++ b/src/cmocka.c
@@ -296,8 +296,12 @@ SIGFPE, SIGILL, SIGSEGV, +#ifdef SIGBUS SIGBUS, +#endif +#ifdef SIGSYS SIGSYS, +#endif }; /* Default signal functions that should be restored after a test is complete. */