diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-04-06 14:09:13 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-04-06 14:09:13 +0000 |
commit | 5e4acd14d9941cb3113ff1d8ee8234e09c39d6d1 (patch) | |
tree | 8e14b96ad0b84b0bdbf7b0875da73946098f75f2 /user/node/ppc32.patch | |
parent | 23cf36fdb508ae89f21b11b78628be0b18217ef7 (diff) | |
download | packages-5e4acd14d9941cb3113ff1d8ee8234e09c39d6d1.tar.gz packages-5e4acd14d9941cb3113ff1d8ee8234e09c39d6d1.tar.bz2 packages-5e4acd14d9941cb3113ff1d8ee8234e09c39d6d1.tar.xz packages-5e4acd14d9941cb3113ff1d8ee8234e09c39d6d1.zip |
user/node: fix building on ppc32, and don't rebuild in package()
Diffstat (limited to 'user/node/ppc32.patch')
-rw-r--r-- | user/node/ppc32.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/user/node/ppc32.patch b/user/node/ppc32.patch new file mode 100644 index 000000000..35270fba6 --- /dev/null +++ b/user/node/ppc32.patch @@ -0,0 +1,15 @@ +--- node-v10.15.3/deps/v8/src/libsampler/sampler.cc.old 2019-03-05 15:16:28.000000000 +0000 ++++ node-v10.15.3/deps/v8/src/libsampler/sampler.cc 2019-04-06 13:44:07.224653262 +0000 +@@ -502,9 +502,9 @@ + reinterpret_cast<void*>(ucontext->uc_mcontext.regs->gpr[PT_R31]); + #else + // Some C libraries, notably Musl, define the regs member as a void pointer +- 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.gregs[32]); ++ state->sp = reinterpret_cast<void*>(ucontext->uc_mcontext.gregs[1]); ++ state->fp = reinterpret_cast<void*>(ucontext->uc_mcontext.gregs[31]); + #endif + #elif V8_HOST_ARCH_S390 + #if V8_TARGET_ARCH_32_BIT |