summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc/amd64/gen/siglongjmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libc/amd64/gen/siglongjmp.c')
-rw-r--r--usr/src/lib/libc/amd64/gen/siglongjmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/lib/libc/amd64/gen/siglongjmp.c b/usr/src/lib/libc/amd64/gen/siglongjmp.c
index d71f40a034..dda4c945d6 100644
--- a/usr/src/lib/libc/amd64/gen/siglongjmp.c
+++ b/usr/src/lib/libc/amd64/gen/siglongjmp.c
@@ -29,6 +29,7 @@
#include <sys/ucontext.h>
#include <setjmp.h>
#include <ucontext.h>
+#include "sigjmp_struct.h"
#include "libc.h"
#pragma weak _siglongjmp = siglongjmp
@@ -36,8 +37,7 @@
void
siglongjmp(sigjmp_buf env, int val)
{
- /* LINTED alignment */
- ucontext_t *ucp = (ucontext_t *)env;
+ ucontext_t *ucp = SIGJMP2UCONTEXT(env);
if (val)
ucp->uc_mcontext.gregs[REG_R0] = val;