From bba3701cd585c51118a7f0e30fe448477701a465 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 16 Nov 2005 03:13:13 +0000 Subject: sync with glibc and fix warning when building pthreads --- libc/sysdeps/linux/sh/bits/setjmp.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libc') diff --git a/libc/sysdeps/linux/sh/bits/setjmp.h b/libc/sysdeps/linux/sh/bits/setjmp.h index 2ce77fd7b..cb141bb66 100644 --- a/libc/sysdeps/linux/sh/bits/setjmp.h +++ b/libc/sysdeps/linux/sh/bits/setjmp.h @@ -44,11 +44,13 @@ typedef struct } __jmp_buf[1]; #endif -#define JB_SIZE (4 * 15) +#if defined __USE_MISC || defined _ASM +# define JB_SIZE (4 * 15) +#endif /* Test if longjmp to JMPBUF would unwind the frame containing a local variable at ADDRESS. */ #define _JMPBUF_UNWINDS(jmpbuf, address) \ - ((void *) (address) < &(jmpbuf)[0].__regs[7]) + ((void *) (address) < (void *) &(jmpbuf)[0].__regs[7]) #endif /* bits/setjmp.h */ -- cgit v1.2.3