21 lines
832 B
C++
21 lines
832 B
C++
--- base/profiler/thread_delegate_posix.cc.orig 2026-06-23 23:37:18 UTC
|
|
+++ base/profiler/thread_delegate_posix.cc
|
|
@@ -16,7 +16,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
|
|
|
|
@@ -25,7 +25,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 =
|