فهرست منبع

sync with glibc and fix warning when building pthreads

Mike Frysinger 18 سال پیش
والد
کامیت
bba3701cd5
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      libc/sysdeps/linux/sh/bits/setjmp.h

+ 4 - 2
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 */