diff options
Diffstat (limited to 'devel/electron13/files/patch-base_threading_platform__thread__posix.cc')
-rw-r--r-- | devel/electron13/files/patch-base_threading_platform__thread__posix.cc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-base_threading_platform__thread__posix.cc b/devel/electron13/files/patch-base_threading_platform__thread__posix.cc new file mode 100644 index 000000000000..017085d47edc --- /dev/null +++ b/devel/electron13/files/patch-base_threading_platform__thread__posix.cc @@ -0,0 +1,22 @@ +--- base/threading/platform_thread_posix.cc.orig 2021-07-15 19:13:30 UTC ++++ base/threading/platform_thread_posix.cc +@@ -32,6 +32,10 @@ + #include <sys/syscall.h> + #endif + ++#if defined(OS_BSD) ++#include <pthread_np.h> ++#endif ++ + #if defined(OS_FUCHSIA) + #include <zircon/process.h> + #else +@@ -181,6 +185,8 @@ PlatformThreadId PlatformThread::CurrentId() { + // into the kernel. + #if defined(OS_APPLE) + return pthread_mach_thread_np(pthread_self()); ++#elif defined(OS_BSD) ++ return pthread_getthreadid_np(); + #elif defined(OS_LINUX) || defined(OS_CHROMEOS) + static NoDestructor<InitAtFork> init_at_fork; + if (g_thread_id == -1) { |