summaryrefslogtreecommitdiff
path: root/www/iridium/files/patch-base_logging__unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'www/iridium/files/patch-base_logging__unittest.cc')
-rw-r--r--www/iridium/files/patch-base_logging__unittest.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/www/iridium/files/patch-base_logging__unittest.cc b/www/iridium/files/patch-base_logging__unittest.cc
new file mode 100644
index 000000000000..2e9496b55220
--- /dev/null
+++ b/www/iridium/files/patch-base_logging__unittest.cc
@@ -0,0 +1,11 @@
+--- base/logging_unittest.cc.orig 2019-12-16 21:51:21 UTC
++++ base/logging_unittest.cc
+@@ -591,7 +591,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);