diff options
Diffstat (limited to 'devel/electron37/files/patch-base_profiler_thread__delegate__posix.cc')
-rw-r--r-- | devel/electron37/files/patch-base_profiler_thread__delegate__posix.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron37/files/patch-base_profiler_thread__delegate__posix.cc b/devel/electron37/files/patch-base_profiler_thread__delegate__posix.cc new file mode 100644 index 000000000000..929cbecfc76b --- /dev/null +++ b/devel/electron37/files/patch-base_profiler_thread__delegate__posix.cc @@ -0,0 +1,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 = |