summaryrefslogtreecommitdiff
path: root/include/signal.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-11-30 21:00:18 -0500
committerRich Felker <dalias@aerifal.cx>2012-11-30 21:00:18 -0500
commit7dcb640da361f272a6c317b03466fd2013934c81 (patch)
tree3264227cc0b440546f7788df3f4a605ab32d5b83 /include/signal.h
parenta7936f61b23100ac32f51776c5b3e52452c7598c (diff)
downloadmusl-7dcb640da361f272a6c317b03466fd2013934c81.tar.gz
musl-7dcb640da361f272a6c317b03466fd2013934c81.tar.bz2
musl-7dcb640da361f272a6c317b03466fd2013934c81.tar.xz
musl-7dcb640da361f272a6c317b03466fd2013934c81.zip
provide NSIG under _BSD_SOURCE (default) as well as _GNU_SOURCE
this fixes a regression related to the changes made to bits/signal.h between 0.9.7 and 0.9.8 that broke some (non-portable) software.
Diffstat (limited to 'include/signal.h')
-rw-r--r--include/signal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/signal.h b/include/signal.h
index 860f7428..89080ab6 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -208,6 +208,10 @@ void (*sigset(int, void (*)(int)))(int);
#define SIGSTKSZ 8192
#endif
+#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
+#define NSIG _NSIG
+#endif
+
#ifdef _BSD_SOURCE
typedef void (*sig_t)(int);
#endif
@@ -218,7 +222,6 @@ void (*bsd_signal(int, void (*)(int)))(int);
int sigisemptyset(const sigset_t *);
#define SA_NOMASK SA_NODEFER
#define SA_ONESHOT SA_RESETHAND
-#define NSIG _NSIG
#endif
#include <bits/signal.h>