summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/signal/bsd_sig.c2
-rw-r--r--libc/signal/signal.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/libc/signal/bsd_sig.c b/libc/signal/bsd_sig.c
index 509de87cb..405447eae 100644
--- a/libc/signal/bsd_sig.c
+++ b/libc/signal/bsd_sig.c
@@ -29,6 +29,6 @@ __bsd_signal (int sig, __sighandler_t handler)
action.sa_flags = 0;
#endif
}
- ret = __sigaction (sig, &action, &oaction);
+ ret = sigaction (sig, &action, &oaction);
return (ret == -1) ? SIG_ERR : oaction.sa_handler;
}
diff --git a/libc/signal/signal.c b/libc/signal/signal.c
index 62af55f38..2397c55e7 100644
--- a/libc/signal/signal.c
+++ b/libc/signal/signal.c
@@ -1,6 +1,9 @@
#include <string.h>
#include <signal.h>
+/* Global variable */
+sigset_t _sigintr; /* Set by siginterrupt. */
+
__sighandler_t
__signal (int sig, __sighandler_t handler, int flags)
{