blob: 8a16286c1c613e4be08a5d2edb4a19a8c4f88c7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#! /bin/sh
patch -p1 -f $* < $0
exit $?
Enable sigjmp_buf.
--- newlib/newlib/libc/include/machine/setjmp.h 2008-02-29 23:46:46.000000000 +0100
+++ newlib/newlib/libc/include/machine/setjmp.h~ 2008-02-29 23:41:19.000000000 +0100
@@ -251,7 +251,7 @@
_END_STD_C
-#if defined(__CYGWIN__) || defined(__rtems__)
+#if 1 || defined(__CYGWIN__) || defined(__rtems__)
#include <signal.h>
#ifdef __cplusplus
@@ -259,7 +259,7 @@
#endif
/* POSIX sigsetjmp/siglongjmp macros */
-typedef int sigjmp_buf[_JBLEN+2];
+typedef int sigjmp_buf[_JBLEN+1+(sizeof (sigset_t)/sizeof (int))];
#define _SAVEMASK _JBLEN
#define _SIGMASK (_JBLEN+1)
|