summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-11-16 03:13:13 +0000
committerMike Frysinger <vapier@gentoo.org>2005-11-16 03:13:13 +0000
commitbba3701cd585c51118a7f0e30fe448477701a465 (patch)
tree4e7fb773dcc3e3c0c2ac664185cca6576fa0c2cf /libc
parent3e73f8b9075088212cf2220abfc644528cb2bf89 (diff)
sync with glibc and fix warning when building pthreads
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/sh/bits/setjmp.h6
1 files changed, 4 insertions, 2 deletions
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 */