summaryrefslogtreecommitdiff
path: root/devel/electron36/files/patch-base_profiler_thread__delegate__posix.cc
blob: 929cbecfc76bec673b30520c3ffac9898e6abb86 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- base/profiler/thread_delegate_posix.cc.orig	2025-04-22 20:15:27 UTC
+++ base/profiler/thread_delegate_posix.cc
@@ -15,7 +15,7 @@
 #include "base/process/process_handle.h"
 #include "build/build_config.h"
 
-#if !(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS))
+#if !(BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD))
 #include "base/profiler/stack_base_address_posix.h"
 #endif
 
@@ -24,7 +24,7 @@ std::unique_ptr<ThreadDelegatePosix> ThreadDelegatePos
 std::unique_ptr<ThreadDelegatePosix> ThreadDelegatePosix::Create(
     SamplingProfilerThreadToken thread_token) {
   std::optional<uintptr_t> base_address;
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
   base_address = thread_token.stack_base_address;
 #else
   base_address =