summaryrefslogtreecommitdiff
path: root/devel/electron4/files/patch-base_logging__unittest.cc
blob: e7361e1773078f65ede3c1cc1b46923d0296341a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- base/logging_unittest.cc.orig	2019-03-15 06:36:56 UTC
+++ base/logging_unittest.cc
@@ -420,7 +420,7 @@ void CheckCrashTestSighandler(int, siginfo_t* info, vo
   // need the arch-specific boilerplate below, which is inspired by breakpad.
   // At the same time, on OSX, ucontext.h is deprecated but si_addr works fine.
   uintptr_t crash_addr = 0;
-#if defined(OS_MACOSX)
+#if defined(OS_MACOSX) || defined(OS_BSD)
   crash_addr = reinterpret_cast<uintptr_t>(info->si_addr);
 #else  // OS_POSIX && !OS_MACOSX
   ucontext_t* context = reinterpret_cast<ucontext_t*>(context_ptr);