summaryrefslogtreecommitdiff
path: root/newlib/patches/05-newlib-newlib-libc-include-machine-setjmp-h.patch
diff options
context:
space:
mode:
authorneal <neal>2008-03-01 13:09:50 +0000
committerneal <neal>2008-03-01 13:09:50 +0000
commit5de3dba22f06a1941b378faf622bbe5779ec474a (patch)
tree94de00184069f3befa5b7784c6a93f88e5e0dfd7 /newlib/patches/05-newlib-newlib-libc-include-machine-setjmp-h.patch
parent949882f979995c232659a1f3d9f5400617f6ed44 (diff)
2008-03-01 Neal H. Walfield <neal@gnu.org>
* Makefile.am (addon): Add newlib/libc/sys/hurd/include/signal.h. * patches/03-newlib-newlib-configure-host.patch: Add -DSIGNAL_PROVIDED to newlib_cflags. * patches/05-newlib-newlib-libc-include-machine-setjmp-h.patch: Correctly calcualtesigjmp_buf. * addon/newlib/libc/sys/hurd/include/signal.h: New file.
Diffstat (limited to 'newlib/patches/05-newlib-newlib-libc-include-machine-setjmp-h.patch')
-rw-r--r--newlib/patches/05-newlib-newlib-libc-include-machine-setjmp-h.patch13
1 files changed, 11 insertions, 2 deletions
diff --git a/newlib/patches/05-newlib-newlib-libc-include-machine-setjmp-h.patch b/newlib/patches/05-newlib-newlib-libc-include-machine-setjmp-h.patch
index ab34594..8a16286 100644
--- a/newlib/patches/05-newlib-newlib-libc-include-machine-setjmp-h.patch
+++ b/newlib/patches/05-newlib-newlib-libc-include-machine-setjmp-h.patch
@@ -4,8 +4,8 @@ exit $?
Enable sigjmp_buf.
---- newlib/newlib/libc/include/machine/setjmp.h~ 2007-11-07 22:42:24.000000000 +0100
-+++ newlib/newlib/libc/include/machine/setjmp.h 2008-02-20 23:46:12.000000000 +0100
+--- 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
@@ -15,3 +15,12 @@ Enable sigjmp_buf.
#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)