tests: check for _USE_GNU and define sighandler_t is not (matching signal.h logic)

This commit is contained in:
Alexander von Gluck IV
2015-02-02 16:17:42 +00:00
parent 2ea35f1cb3
commit f6faff8960
@@ -21,6 +21,14 @@ typedef void (*sighandler_t)(int);
# define ualarm(usec, interval) alarm(1)
#endif
#if !defined(__USE_GNU)
// sighandler is a GNU extension. This matches the check
// in signal.h. We may want to use posix sigaction though
// in the future which is posix
typedef void (*sighandler_t)(int);
#endif
const void* kUserDataMagic = (void *)0x12345678;
static char sAlternateStack[SIGSTKSZ];