pkgsrc/security/tor-browser/patches/patch-js_src_wasm_WasmSignalHandlers.cpp
wiz 8148d2a64e tor-browser: update for recent changes to firefox60 and rust.
Reduce diffs to firefox60 even more while here.
2019-03-15 11:51:26 +00:00

14 lines
596 B
C++

$NetBSD: patch-js_src_wasm_WasmSignalHandlers.cpp,v 1.2 2019/03/15 11:51:26 wiz Exp $
Support SunOS.
--- js/src/wasm/WasmSignalHandlers.cpp.orig 2019-02-13 14:19:40.000000000 +0000
+++ js/src/wasm/WasmSignalHandlers.cpp
@@ -133,6 +133,7 @@ struct AutoSignalHandler {
#define EBP_sig(p) ((p)->uc_mcontext.gregs[REG_EBP])
#define ESP_sig(p) ((p)->uc_mcontext.gregs[REG_ESP])
#else
+#include <sys/regset.h>
#define XMM_sig(p, i) ((p)->uc_mcontext.fpregs.fp_reg_set.fpchip_state.xmm[i])
#define EIP_sig(p) ((p)->uc_mcontext.gregs[REG_PC])
#define EBP_sig(p) ((p)->uc_mcontext.gregs[REG_EBP])