summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/sh/bits/setjmp.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/sh/bits/setjmp.h')
-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 */