提交 d6462491 编写于 作者: R Rich Felker

fix wrong size for sigjmp_buf signal set array

128 is the size in bytes, not longs.
上级 dc046f55
...@@ -14,7 +14,7 @@ extern "C" { ...@@ -14,7 +14,7 @@ extern "C" {
typedef struct { typedef struct {
jmp_buf __jb; jmp_buf __jb;
unsigned long __fl; unsigned long __fl;
unsigned long __ss[128]; unsigned long __ss[128/sizeof(long)];
} sigjmp_buf[1]; } sigjmp_buf[1];
int sigsetjmp (sigjmp_buf, int); int sigsetjmp (sigjmp_buf, int);
void siglongjmp (sigjmp_buf, int); void siglongjmp (sigjmp_buf, int);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册