diff options
author | Nicholas J. Kain <njkain@gmail.com> | 2011-02-15 08:02:33 -0500 |
---|---|---|
committer | Nicholas J. Kain <njkain@gmail.com> | 2011-02-15 08:02:33 -0500 |
commit | bb89bdd00e494baa11ceb67bf40cc28b0104b642 (patch) | |
tree | bb4bfe97db688698fe0dd95a182c968f46d4f669 /arch/x86_64/bits/signal.h | |
parent | 1e12632591ab98a6ea3af8680716c28282552981 (diff) | |
download | musl-bb89bdd00e494baa11ceb67bf40cc28b0104b642.tar.gz musl-bb89bdd00e494baa11ceb67bf40cc28b0104b642.tar.bz2 musl-bb89bdd00e494baa11ceb67bf40cc28b0104b642.tar.xz musl-bb89bdd00e494baa11ceb67bf40cc28b0104b642.zip |
Update x86_64 bits to mirror (modulo platform differences) the latest changes
to i386.
Diffstat (limited to 'arch/x86_64/bits/signal.h')
-rw-r--r-- | arch/x86_64/bits/signal.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/arch/x86_64/bits/signal.h b/arch/x86_64/bits/signal.h index 02c54d5a..a9690488 100644 --- a/arch/x86_64/bits/signal.h +++ b/arch/x86_64/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; @@ -65,12 +68,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 |