projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
header cleanup, conformance fixes - signals
[musl]
/
include
/
bits
/
signal.h
diff --git
a/include/bits/signal.h
b/include/bits/signal.h
index
c0bb818
..
8827efd
100644
(file)
--- 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;
struct __siginfo
{
int si_signo;
@@
-57,12
+60,17
@@
struct __siginfo
#define SIG_UNBLOCK 1
#define SIG_SETMASK 2
#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)
#define SIG_HOLD ((void (*)(int)) 2)
+#endif
+
+#ifdef _GNU_SOURCE
#define NSIG 64
#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
#define SIGHUP 1
#define SIGINT 2