aboutsummaryrefslogblamecommitdiff
path: root/devel/electron23/files/patch-third__party_crashpad_crashpad_util_misc_capture__context.h
blob: 89caf45be9d7257a586fcf463d3eb2a123dd0ebe (plain) (tree)





















                                                                                               
--- third_party/crashpad/crashpad/util/misc/capture_context.h.orig	2022-02-28 16:54:41 UTC
+++ third_party/crashpad/crashpad/util/misc/capture_context.h
@@ -21,7 +21,8 @@
 #include <mach/mach.h>
 #elif BUILDFLAG(IS_WIN)
 #include <windows.h>
-#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID)
+#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || \
+      BUILDFLAG(IS_FREEBSD)
 #include <ucontext.h>
 #elif BUILDFLAG(IS_FUCHSIA)
 #include <signal.h>
@@ -38,7 +39,8 @@ using NativeCPUContext = arm_unified_thread_state;
 #elif BUILDFLAG(IS_WIN)
 using NativeCPUContext = CONTEXT;
 #elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || \
-    BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA)
+    BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_FUCHSIA) || \
+    BUILDFLAG(IS_BSD)
 using NativeCPUContext = ucontext_t;
 #endif  // BUILDFLAG(IS_APPLE)