Fix previous: the way we calculate, we need to test the size of sigjmp_buf

This commit is contained in:
martin 2011-04-30 23:39:08 +00:00
parent c670087695
commit 9881f8de04

View File

@ -1,4 +1,4 @@
/* $NetBSD: longjmp.c,v 1.5 2011/04/30 23:30:27 martin Exp $ */
/* $NetBSD: longjmp.c,v 1.6 2011/04/30 23:39:08 martin Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@ -56,7 +56,7 @@ typedef struct {
*/
__CTASSERT(0x68 == offsetof(__jmp_buf_regs_t,save_mask)+
sizeof(struct sigcontext));
__CTASSERT(sizeof(jmp_buf) >= sizeof(__jmp_buf_regs_t) +
__CTASSERT(sizeof(sigjmp_buf) >= sizeof(__jmp_buf_regs_t) +
sizeof(struct sigcontext));
void