summaryrefslogtreecommitdiffstats
path: root/libc/signal/sigjmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/signal/sigjmp.c')
-rw-r--r--libc/signal/sigjmp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libc/signal/sigjmp.c b/libc/signal/sigjmp.c
index 37f19595a..38892e050 100644
--- a/libc/signal/sigjmp.c
+++ b/libc/signal/sigjmp.c
@@ -19,15 +19,19 @@
#include <stddef.h>
#include <setjmp.h>
#include <signal.h>
+#include <libc-internal.h>
+
+libc_hidden_proto(sigprocmask)
/* This function is called by the `sigsetjmp' macro
before doing a `__setjmp' on ENV[0].__jmpbuf.
Always return zero. */
+int __sigjmp_save (sigjmp_buf env, int savemask) attribute_hidden;
int __sigjmp_save (sigjmp_buf env, int savemask)
{
env[0].__mask_was_saved = (savemask &&
- __sigprocmask (SIG_BLOCK, (sigset_t *) NULL, &env[0].__saved_mask) == 0);
+ sigprocmask (SIG_BLOCK, (sigset_t *) NULL, &env[0].__saved_mask) == 0);
return 0;
}