diff options
Diffstat (limited to 'www/firefox/patches/patch-ipc_chromium_src_base_platform__thread__posix.cc')
-rw-r--r-- | www/firefox/patches/patch-ipc_chromium_src_base_platform__thread__posix.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/www/firefox/patches/patch-ipc_chromium_src_base_platform__thread__posix.cc b/www/firefox/patches/patch-ipc_chromium_src_base_platform__thread__posix.cc index 077f126ddb0..b9f49fea019 100644 --- a/www/firefox/patches/patch-ipc_chromium_src_base_platform__thread__posix.cc +++ b/www/firefox/patches/patch-ipc_chromium_src_base_platform__thread__posix.cc @@ -1,6 +1,6 @@ -$NetBSD: patch-ipc_chromium_src_base_platform__thread__posix.cc,v 1.2 2013/07/17 11:00:13 jperkin Exp $ +$NetBSD: patch-ipc_chromium_src_base_platform__thread__posix.cc,v 1.3 2013/09/19 12:37:49 ryoon Exp $ ---- ipc/chromium/src/base/platform_thread_posix.cc.orig 2013-06-18 11:01:23.000000000 +0000 +--- ipc/chromium/src/base/platform_thread_posix.cc.orig 2013-09-10 03:43:34.000000000 +0000 +++ ipc/chromium/src/base/platform_thread_posix.cc @@ -10,7 +10,9 @@ #if defined(OS_MACOSX) @@ -12,12 +12,13 @@ $NetBSD: patch-ipc_chromium_src_base_platform__thread__posix.cc,v 1.2 2013/07/17 #elif defined(OS_LINUX) #include <sys/syscall.h> #include <sys/prctl.h> -@@ -106,7 +108,7 @@ void PlatformThread::SetName(const char* - pthread_set_name_np(pthread_self(), name); - #elif defined(OS_NETBSD) +@@ -110,7 +112,8 @@ void PlatformThread::SetName(const char* pthread_setname_np(pthread_self(), "%s", (void *)name); + #elif defined(OS_BSD) && !defined(__GLIBC__) + pthread_set_name_np(pthread_self(), name); -#else +#elif !defined(OS_SOLARIS) - prctl(PR_SET_NAME, reinterpret_cast<uintptr_t>(name), 0, 0, 0); ++ prctl(PR_SET_NAME, reinterpret_cast<uintptr_t>(name), 0, 0, 0); #endif } + #endif // !OS_MACOSX |