diff options
Diffstat (limited to 'include/setjmp.h')
-rw-r--r-- | include/setjmp.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/setjmp.h b/include/setjmp.h index fb9c078f7..c70f77198 100644 --- a/include/setjmp.h +++ b/include/setjmp.h @@ -113,4 +113,14 @@ extern void siglongjmp (sigjmp_buf __env, int __val) __END_DECLS +#ifdef _LIBC +extern void __longjmp(__jmp_buf __env, int __val) attribute_noreturn; +libc_hidden_proto(__longjmp) +extern __typeof(longjmp) __libc_longjmp attribute_noreturn; +extern __typeof(siglongjmp) __libc_siglongjmp attribute_noreturn; +extern void _longjmp_unwind(jmp_buf __env, int __val); +/* We use the normal longjmp for unwinding */ +# define __libc_unwind_longjmp(buf, val) __libc_longjmp(buf, val) +#endif + #endif /* setjmp.h */ |