--- base/profiler/sampling_profiler_thread_token.h.orig 2026-10-18 13:29:39 UTC +++ base/profiler/sampling_profiler_thread_token.h @@ -13,7 +13,7 @@ #if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_APPLE) #include -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) #include #elif BUILDFLAG(IS_WIN) #include @@ -35,7 +35,7 @@ struct BASE_EXPORT SamplingProfilerThreadToken { PlatformThreadId id; #if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_APPLE) pthread_t pthread_id; -#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) +#elif BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD) // Due to the sandbox, we can only retrieve the stack base address for the // current thread. We must grab it during // GetSamplingProfilerCurrentThreadToken() and not try to get it later.