summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2009-05-27 18:54:58 +0000
committerJeff Johnston <jjohnstn@redhat.com>2009-05-27 18:54:58 +0000
commit0072a411295961e3b0601e7a3a9d91250e35edd5 (patch)
treebdca6547a40527624c309ac15a28aaa55c36d0e7
parentc6e85c0de4c8916eccf78502ef8eca8f7ed59143 (diff)
downloadcygnal-0072a411295961e3b0601e7a3a9d91250e35edd5.tar.gz
cygnal-0072a411295961e3b0601e7a3a9d91250e35edd5.tar.bz2
cygnal-0072a411295961e3b0601e7a3a9d91250e35edd5.zip
2009-05-27 Neal H. Walfield <neal@gnu.org>
* libc/include/machine/setjmp.h (sigjmp_buf): Size according to _JBTYPE and the size of sigset_t.
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/include/machine/setjmp.h6
2 files changed, 10 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index bc4405758..4bd5edf09 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,8 @@
+2009-05-27 Neal H. Walfield <neal@gnu.org>
+
+ * libc/include/machine/setjmp.h (sigjmp_buf): Size according to
+ _JBTYPE and the size of sigset_t.
+
2009-05-15 Craig Howland <howland@LGSInnovations.com>
* configure.in: Add configuration test for long double type existing
diff --git a/newlib/libc/include/machine/setjmp.h b/newlib/libc/include/machine/setjmp.h
index 52b39e2da..7ffb7d7e6 100644
--- a/newlib/libc/include/machine/setjmp.h
+++ b/newlib/libc/include/machine/setjmp.h
@@ -267,7 +267,11 @@ extern "C" {
#endif
/* POSIX sigsetjmp/siglongjmp macros */
-typedef int sigjmp_buf[_JBLEN+2];
+#ifdef _JBTYPE
+typedef _JBTYPE sigjmp_buf[_JBLEN+1+(sizeof (sigset_t)/sizeof (_JBTYPE))];
+#else
+typedef int sigjmp_buf[_JBLEN+1+(sizeof (sigset_t)/sizeof (int))];
+#endif
#define _SAVEMASK _JBLEN
#define _SIGMASK (_JBLEN+1)