aboutsummaryrefslogtreecommitdiff
path: root/devel/electron37/files/patch-base_profiler_sampling__profiler__thread__token.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron37/files/patch-base_profiler_sampling__profiler__thread__token.cc')
-rw-r--r--devel/electron37/files/patch-base_profiler_sampling__profiler__thread__token.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron37/files/patch-base_profiler_sampling__profiler__thread__token.cc b/devel/electron37/files/patch-base_profiler_sampling__profiler__thread__token.cc
new file mode 100644
index 000000000000..2ba9cfc555e9
--- /dev/null
+++ b/devel/electron37/files/patch-base_profiler_sampling__profiler__thread__token.cc
@@ -0,0 +1,20 @@
+--- base/profiler/sampling_profiler_thread_token.cc.orig 2025-04-22 20:15:27 UTC
++++ base/profiler/sampling_profiler_thread_token.cc
+@@ -6,7 +6,7 @@
+
+ #include "build/build_config.h"
+
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ #include <pthread.h>
+
+ #include "base/profiler/stack_base_address_posix.h"
+@@ -18,7 +18,7 @@ SamplingProfilerThreadToken GetSamplingProfilerCurrent
+ PlatformThreadId id = PlatformThread::CurrentId();
+ #if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_APPLE)
+ return {id, pthread_self()};
+-#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
++#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
+ std::optional<uintptr_t> maybe_stack_base =
+ GetThreadStackBaseAddress(id, pthread_self());
+ return {id, maybe_stack_base};