--- base/threading/platform_thread_internal_posix.cc.orig 2025-10-21 20:19:54 UTC +++ base/threading/platform_thread_internal_posix.cc @@ -31,10 +31,19 @@ int GetCurrentThreadNiceValue() { } int GetCurrentThreadNiceValue() { +#if BUILDFLAG(IS_BSD) + NOTIMPLEMENTED(); + return 0; +#else return GetThreadNiceValue(PlatformThreadId{0}); +#endif } int GetThreadNiceValue(PlatformThreadId id) { +#if BUILDFLAG(IS_BSD) + NOTIMPLEMENTED(); + return 0; +#else // Need to clear errno before calling getpriority(): // http://man7.org/linux/man-pages/man2/getpriority.2.html errno = 0; @@ -46,6 +55,7 @@ int GetThreadNiceValue(PlatformThreadId id) { } return nice_value; +#endif } } // namespace base::internal