mirror of
https://git.freebsd.org/ports.git
synced 2025-07-06 20:09:14 -04:00
20 lines
810 B
C++
20 lines
810 B
C++
--- base/profiler/thread_delegate_posix.cc.orig 2022-10-24 13:33:33 UTC
|
|
+++ base/profiler/thread_delegate_posix.cc
|
|
@@ -13,7 +13,7 @@
|
|
#include "build/build_config.h"
|
|
#include "third_party/abseil-cpp/absl/types/optional.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
|
|
|
|
@@ -22,7 +22,7 @@ namespace base {
|
|
std::unique_ptr<ThreadDelegatePosix> ThreadDelegatePosix::Create(
|
|
SamplingProfilerThreadToken thread_token) {
|
|
absl::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 =
|