* libc/include/machine/setjmp.h (sigjmp_buf): Fix definition of

sigjmp_buf size if _JBTYPE is defined.
This commit is contained in:
Corinna Vinschen 2013-02-28 16:42:21 +00:00
parent c2e3ff288d
commit 2d8f1ea62a
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-02-28 Corinna Vinschen <vinschen@redhat.com>
* libc/include/machine/setjmp.h (sigjmp_buf): Fix definition of
sigjmp_buf size if _JBTYPE is defined.
2013-02-26 Corinna Vinschen <vinschen@redhat.com>
* libc/include/malloc.h (struct mallinfo): Convert type of all members

View File

@ -305,7 +305,8 @@ extern "C" {
/* POSIX sigsetjmp/siglongjmp macros */
#ifdef _JBTYPE
typedef _JBTYPE sigjmp_buf[_JBLEN+1+(sizeof (sigset_t)/sizeof (_JBTYPE))];
typedef _JBTYPE sigjmp_buf[_JBLEN+1+((sizeof (_JBTYPE) + sizeof (sigset_t) - 1)
/sizeof (_JBTYPE))];
#else
typedef int sigjmp_buf[_JBLEN+1+(sizeof (sigset_t)/sizeof (int))];
#endif