major bugfix for sigset_t (it was mistakenly 1024 bytes instead of bits)

note that object files using sigset_t (or struct sigaction) need to be
recompiled to work correctly after this fix.
This commit is contained in:
Rich Felker
2011-02-14 18:45:58 -05:00
parent 74eea628cf
commit e8362c8b51
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ extern "C" {
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
typedef unsigned long sigjmp_buf[(1024+sizeof(jmp_buf))/sizeof(long)];
typedef unsigned long sigjmp_buf[(128+sizeof(jmp_buf))/sizeof(long)];
#ifdef _GNU_SOURCE
#define jmp_buf sigjmp_buf
#endif