summaryrefslogtreecommitdiff
path: root/src/setjmp/setjmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/setjmp/setjmp.c')
-rw-r--r--src/setjmp/setjmp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/setjmp/setjmp.c b/src/setjmp/setjmp.c
index 093bd7c5..02b95789 100644
--- a/src/setjmp/setjmp.c
+++ b/src/setjmp/setjmp.c
@@ -6,12 +6,14 @@
int setjmp(jmp_buf env)
{
- extern int __setjmp(jmp_buf);
+ extern int ___setjmp(jmp_buf);
SIGNAL_SAFE(0);
memset(env, 0, sizeof(jmp_buf));
- return __setjmp(env);
+ return ___setjmp(env);
}
+__check_1(int, 0, setjmp, jmp_buf)
+
/***
saves the current state of the calling environment
in the TYPEDEF(jmp_buf) ARGUMENT(env).