$NetBSD: patch-ipc_chromium_src_base_platform__thread__posix.cc,v 1.1 2017/04/27 01:55:57 ryoon Exp $ * Support NetBSD * Support Solaris --- ipc/chromium/src/base/platform_thread_posix.cc.orig 2016-05-12 17:13:13.000000000 +0000 +++ ipc/chromium/src/base/platform_thread_posix.cc @@ -10,7 +10,9 @@ #if defined(OS_MACOSX) #include #elif defined(OS_NETBSD) +_Pragma("GCC visibility push(default)") #include +_Pragma("GCC visibility pop") #elif defined(OS_LINUX) #include #include @@ -105,7 +107,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(name), 0, 0, 0); #endif } #endif // !OS_MACOSX