$NetBSD: patch-src_3rdparty_chromium_third__party_perfetto_include_perfetto_base_thread__utils.h,v 1.1 2021/08/03 21:04:36 markd Exp $ --- src/3rdparty/chromium/third_party/perfetto/include/perfetto/base/thread_utils.h.orig 2020-06-25 09:34:47.000000000 +0000 +++ src/3rdparty/chromium/third_party/perfetto/include/perfetto/base/thread_utils.h @@ -71,6 +71,11 @@ using PlatformThreadId = pid_t; inline PlatformThreadId GetThreadId() { return reinterpret_cast(pthread_self()); } +#elif PERFETTO_BUILDFLAG(PERFETTO_OS_NETBSD) +using PlatformThreadId = uint64_t; +inline PlatformThreadId GetThreadId() { + return reinterpret_cast(pthread_self()); +} #else // Default to pthreads in case no OS is set. using PlatformThreadId = pthread_t; inline PlatformThreadId GetThreadId() {