mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
signal.h: Look for _DEFAULT_SOURCE not __USE_GNU for sighandler_t.
Our features.h does not define __USE_GNU, and so applications trying to use this GNU-ism would have to define it for themselves, even if _GNU_SOURCE had already been specified.
This commit is contained in:
parent
8e8c7a073f
commit
efdfb84038
@ -61,7 +61,7 @@ typedef struct __siginfo_t {
|
||||
typedef void (*__sighandler_t)(int);
|
||||
typedef void (*__siginfo_handler_t)(int, siginfo_t*, void*);
|
||||
|
||||
#ifdef __USE_GNU
|
||||
#if defined(_DEFAULT_SOURCE)
|
||||
typedef __sighandler_t sighandler_t;
|
||||
/* GNU-like signal handler typedef */
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user