diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-02-14 20:33:54 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-02-14 20:33:54 -0500 |
commit | 1322cb82a33a2a59e75937911d910dabc48e9af9 (patch) | |
tree | 2bf15a7623018a27a33c7a7e2b69b5e45f28f803 /include/bits | |
parent | c316b284456e8b8d5f6e2ff18ece9c15b60033c7 (diff) | |
download | musl-1322cb82a33a2a59e75937911d910dabc48e9af9.tar.gz musl-1322cb82a33a2a59e75937911d910dabc48e9af9.tar.xz musl-1322cb82a33a2a59e75937911d910dabc48e9af9.zip |
header cleanup, conformance fixes - signals
Diffstat (limited to 'include/bits')
-rw-r--r-- | include/bits/signal.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/include/bits/signal.h b/include/bits/signal.h index c0bb818b..8827efda 100644 --- a/include/bits/signal.h +++ b/include/bits/signal.h @@ -1,3 +1,6 @@ +#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ + || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) + struct __siginfo { int si_signo; @@ -57,12 +60,17 @@ struct __siginfo #define SIG_UNBLOCK 1 #define SIG_SETMASK 2 -#define SIG_ERR ((void (*)(int))-1) -#define SIG_DFL ((void (*)(int)) 0) -#define SIG_IGN ((void (*)(int)) 1) #define SIG_HOLD ((void (*)(int)) 2) +#endif + +#ifdef _GNU_SOURCE #define NSIG 64 +#endif + +#define SIG_ERR ((void (*)(int))-1) +#define SIG_DFL ((void (*)(int)) 0) +#define SIG_IGN ((void (*)(int)) 1) #define SIGHUP 1 #define SIGINT 2 |