diff options
Diffstat (limited to 'www/firefox/files/patch-ipc-chromium-src-base-platform_thread_posix.cc')
-rw-r--r-- | www/firefox/files/patch-ipc-chromium-src-base-platform_thread_posix.cc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/www/firefox/files/patch-ipc-chromium-src-base-platform_thread_posix.cc b/www/firefox/files/patch-ipc-chromium-src-base-platform_thread_posix.cc new file mode 100644 index 000000000000..0b527d38d4f6 --- /dev/null +++ b/www/firefox/files/patch-ipc-chromium-src-base-platform_thread_posix.cc @@ -0,0 +1,25 @@ +--- ipc/chromium/src/base/platform_thread_posix.cc~ ++++ ipc/chromium/src/base/platform_thread_posix.cc +@@ -11,6 +11,7 @@ + #include <mach/mach.h> + #elif defined(OS_LINUX) + #include <sys/syscall.h> ++#include <pthread_np.h> + #include <unistd.h> + #endif + +@@ -34,7 +35,13 @@ PlatformThreadId PlatformThread::Current + #if defined(OS_MACOSX) + return mach_thread_self(); + #elif defined(OS_LINUX) +- return syscall(__NR_gettid); ++#if __FreeBSD_version > 900030 ++ return pthread_getthreadid_np(); ++#else ++ long tid; ++ syscall(SYS_thr_self, &tid); ++ return tid; ++#endif + #endif + } + |