diff options
Diffstat (limited to 'gcc/unwind-sjlj.c')
-rw-r--r-- | gcc/unwind-sjlj.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/unwind-sjlj.c b/gcc/unwind-sjlj.c index 0f1d8ba7323..46f30ae1d8f 100644 --- a/gcc/unwind-sjlj.c +++ b/gcc/unwind-sjlj.c @@ -26,8 +26,13 @@ #if USING_SJLJ_EXCEPTIONS #ifdef DONT_USE_BUILTIN_SETJMP +#ifndef inhibit_libc #include <setjmp.h> #else +typedef void *jmp_buf[JMP_BUF_SIZE]; +extern void longjmp(jmp_buf, int) __attribute__((noreturn)); +#endif +#else #define setjmp __builtin_setjmp #define longjmp __builtin_longjmp #endif |