summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-09-21 22:25:31 -0400
committerRich Felker <dalias@aerifal.cx>2011-09-21 22:25:31 -0400
commit81a5577a860b1d320239a84c84266e4d7045f450 (patch)
tree8833cec3c67fd77c3b1de58fc082f48ad1995f88 /include
parentca52e347673126956a4f21247d8a551ea668f61f (diff)
downloadmusl-81a5577a860b1d320239a84c84266e4d7045f450.tar.gz
musl-81a5577a860b1d320239a84c84266e4d7045f450.tar.bz2
musl-81a5577a860b1d320239a84c84266e4d7045f450.tar.xz
musl-81a5577a860b1d320239a84c84266e4d7045f450.zip
fix missing SIG_DFL, SIG_IGN, SIG_ERR without posix in signal.h
Diffstat (limited to 'include')
-rw-r--r--include/signal.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/signal.h b/include/signal.h
index 0fdf720c..7f30be33 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -25,15 +25,12 @@ extern "C" {
#include <bits/alltypes.h>
+#define SIG_HOLD ((void (*)(int)) 2)
+
#define SIG_BLOCK 0
#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 SI_ASYNCNL (-60)
#define SI_TKILL (-6)
#define SI_SIGIO (-5)
@@ -217,6 +214,10 @@ int sigisemptyset(const sigset_t *);
#include <bits/signal.h>
+#define SIG_ERR ((void (*)(int))-1)
+#define SIG_DFL ((void (*)(int)) 0)
+#define SIG_IGN ((void (*)(int)) 1)
+
typedef int sig_atomic_t;
void (*signal(int, void (*)(int)))(int);