mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
20 lines
794 B
C++
20 lines
794 B
C++
--- base/profiler/thread_delegate_posix.cc.orig 2024-06-22 08:49:42 UTC
|
|
+++ base/profiler/thread_delegate_posix.cc
|
|
@@ -19,7 +19,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
|
|
|
|
@@ -28,7 +28,7 @@ namespace base {
|
|
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 =
|