diff options
author | Florian Smeets <flo@FreeBSD.org> | 2011-06-21 21:12:31 +0000 |
---|---|---|
committer | Florian Smeets <flo@FreeBSD.org> | 2011-06-21 21:12:31 +0000 |
commit | b114c704acc1ae20b9f25e0066b2b3117516b7c2 (patch) | |
tree | 6fc8b4915c54356a6fc00b58f388cf785d989d6a /www/firefox/files/patch-ipc-chromium-src-base-platform_thread_posix.cc | |
parent | Fix build with with libpurple.8 (diff) |
- update to 5.0
- enable ipc, based on a patch by Pan Tsu <inyaoo@gmail.com>
Security: http://www.vuxml.org/freebsd/dfe40cff-9c3f-11e0-9bec-6c626dd55a41.html
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 + } + |