blob: f2a935ddbc0eef181c1886769f62fd8fb1eb086b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- third_party/crashpad/crashpad/util/misc/capture_context.h.orig 2020-07-07 21:57:56 UTC
+++ third_party/crashpad/crashpad/util/misc/capture_context.h
@@ -21,7 +21,7 @@
#include <mach/mach.h>
#elif defined(OS_WIN)
#include <windows.h>
-#elif defined(OS_LINUX) || defined(OS_ANDROID)
+#elif defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_BSD)
#include <ucontext.h>
#elif defined(OS_FUCHSIA)
#include <signal.h>
@@ -37,7 +37,7 @@ using NativeCPUContext = arm_unified_thread_state;
#endif
#elif defined(OS_WIN)
using NativeCPUContext = CONTEXT;
-#elif defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_FUCHSIA)
+#elif defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_FUCHSIA) || defined(OS_BSD)
using NativeCPUContext = ucontext_t;
#endif // OS_MACOSX
|