Make this more compatable with libc_r. Make the internal types for storing
registers an array of longs rather than int.
This commit is contained in:
parent
d8e82636a4
commit
c35518b4ed
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=115734
@ -37,7 +37,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
#define _JBLEN 22 /* Size of the jmp_buf on x86. */
|
||||
#define _JBLEN 12 /* Size of the jmp_buf on AMD64. */
|
||||
|
||||
/*
|
||||
* jmp_buf and sigjmp_buf are encapsulated in different structs to force
|
||||
@ -45,9 +45,9 @@
|
||||
* internally to avoid some run-time errors for mismatches.
|
||||
*/
|
||||
#if __BSD_VISIBLE || __POSIX_VISIBLE || __XSI_VISIBLE
|
||||
typedef struct _sigjmp_buf { int _sjb[_JBLEN + 1]; } sigjmp_buf[1];
|
||||
typedef struct _sigjmp_buf { long _sjb[_JBLEN]; } sigjmp_buf[1];
|
||||
#endif
|
||||
|
||||
typedef struct _jmp_buf { int _jb[_JBLEN + 1]; } jmp_buf[1];
|
||||
typedef struct _jmp_buf { long _jb[_JBLEN]; } jmp_buf[1];
|
||||
|
||||
#endif /* !_MACHINE_SETJMP_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user