diff options
Diffstat (limited to 'devel/electron7/files/patch-v8_src_trap-handler_handler-inside-posix.cc')
-rw-r--r-- | devel/electron7/files/patch-v8_src_trap-handler_handler-inside-posix.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron7/files/patch-v8_src_trap-handler_handler-inside-posix.cc b/devel/electron7/files/patch-v8_src_trap-handler_handler-inside-posix.cc new file mode 100644 index 000000000000..115fcb98328a --- /dev/null +++ b/devel/electron7/files/patch-v8_src_trap-handler_handler-inside-posix.cc @@ -0,0 +1,20 @@ +--- v8/src/trap-handler/handler-inside-posix.cc.orig 2019-12-12 12:51:13 UTC ++++ v8/src/trap-handler/handler-inside-posix.cc +@@ -27,7 +27,7 @@ + + #include <signal.h> + +-#ifdef V8_OS_LINUX ++#if defined(V8_OS_LINUX) || defined(V8_OS_FREEBSD) + #include <ucontext.h> + #elif V8_OS_MACOSX + #include <sys/ucontext.h> +@@ -112,6 +112,8 @@ bool TryHandleSignal(int signum, siginfo_t* info, void + auto* context_rip = &uc->uc_mcontext.gregs[REG_RIP]; + #elif V8_OS_MACOSX + auto* context_rip = &uc->uc_mcontext->__ss.__rip; ++#elif V8_OS_FREEBSD ++ auto* context_rip = &uc->uc_mcontext.mc_rip; + #else + #error Unsupported platform + #endif |