aboutsummaryrefslogtreecommitdiffstats
path: root/community/nodejs-current/ppc-fix-musl-mcontext.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/nodejs-current/ppc-fix-musl-mcontext.patch')
-rw-r--r--community/nodejs-current/ppc-fix-musl-mcontext.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/community/nodejs-current/ppc-fix-musl-mcontext.patch b/community/nodejs-current/ppc-fix-musl-mcontext.patch
index 640fb8ed05..bfda4b6db7 100644
--- a/community/nodejs-current/ppc-fix-musl-mcontext.patch
+++ b/community/nodejs-current/ppc-fix-musl-mcontext.patch
@@ -23,9 +23,9 @@ Ported to nodejs 7.7.4 (jirutka)
+#else
+ // Some C libraries, notably Musl, define the regs member as a void pointer,
+ // hence we use the gp_regs member instead.
-+ state.pc = reinterpret_cast<void*>(ucontext->uc_mcontext.gp_regs[32]);
-+ state.sp = reinterpret_cast<void*>(ucontext->uc_mcontext.gp_regs[1]);
-+ state.fp = reinterpret_cast<void*>(ucontext->uc_mcontext.gp_regs[31]);
++ state->pc = reinterpret_cast<void*>(ucontext->uc_mcontext.gp_regs[32]);
++ state->sp = reinterpret_cast<void*>(ucontext->uc_mcontext.gp_regs[1]);
++ state->fp = reinterpret_cast<void*>(ucontext->uc_mcontext.gp_regs[31]);
+#endif
#elif V8_HOST_ARCH_S390
#if V8_TARGET_ARCH_32_BIT