$OpenBSD: patch-src_3rdparty_chromium_third_party_perfetto_include_perfetto_base_thread_utils_h,v 1.1 2021/01/19 06:16:35 rsadowski Exp $

Index: src/3rdparty/chromium/third_party/perfetto/include/perfetto/base/thread_utils.h
--- src/3rdparty/chromium/third_party/perfetto/include/perfetto/base/thread_utils.h.orig
+++ src/3rdparty/chromium/third_party/perfetto/include/perfetto/base/thread_utils.h
@@ -42,6 +42,11 @@ using PlatformThreadId = pid_t;
 inline PlatformThreadId GetThreadId() {
   return gettid();
 }
+#elif PERFETTO_BUILDFLAG(PERFETTO_OS_OPENBSD)
+using PlatformThreadId = pid_t;
+inline PlatformThreadId GetThreadId() {
+  return reinterpret_cast<int64_t>(pthread_self());
+}
 #elif PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX)
 using PlatformThreadId = pid_t;
 inline PlatformThreadId GetThreadId() {
