From 3cd02350c834d7330f6a936b5f47a9573c4e3bcb Mon Sep 17 00:00:00 2001 From: mahlemiut Date: Tue, 9 Feb 2016 00:10:48 +1300 Subject: [PATCH] correction for BSD --- include/bx/thread.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/bx/thread.h b/include/bx/thread.h index 71185bb..0abccaa 100644 --- a/include/bx/thread.h +++ b/include/bx/thread.h @@ -154,12 +154,14 @@ namespace bx { #if BX_PLATFORM_OSX || BX_PLATFORM_IOS pthread_setname_np(_name); -#elif (BX_PLATFORM_LINUX && defined(__GLIBC__)) || BX_PLATFORM_BSD +#elif (BX_PLATFORM_LINUX && defined(__GLIBC__)) #if (__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 12)) pthread_setname_np(m_handle, _name); #else prctl(PR_SET_NAME,_name,0,0,0); #endif +#elif BX_PLATFORM_BSD + pthread_setname_np(m_handle, _name); #elif BX_PLATFORM_WINDOWS && BX_COMPILER_MSVC # pragma pack(push, 8) struct ThreadName