|
@@ -14,18 +14,8 @@
|
|
|
|
|
|
|
|
#if BX_CRT_NONE
|
|
#if BX_CRT_NONE
|
|
|
# include <bx/crt0.h>
|
|
# include <bx/crt0.h>
|
|
|
-#elif BX_PLATFORM_ANDROID \
|
|
|
|
|
- || BX_PLATFORM_LINUX \
|
|
|
|
|
- || BX_PLATFORM_IOS \
|
|
|
|
|
- || BX_PLATFORM_OSX \
|
|
|
|
|
- || BX_PLATFORM_PS4 \
|
|
|
|
|
- || BX_PLATFORM_RPI \
|
|
|
|
|
- || BX_PLATFORM_NX \
|
|
|
|
|
- || BX_PLATFORM_VISIONOS
|
|
|
|
|
|
|
+#elif BX_PLATFORM_POSIX
|
|
|
# include <pthread.h>
|
|
# include <pthread.h>
|
|
|
-# if BX_PLATFORM_LINUX && (BX_CRT_GLIBC < 21200)
|
|
|
|
|
-# include <sys/prctl.h>
|
|
|
|
|
-# endif // BX_PLATFORM_
|
|
|
|
|
#elif BX_PLATFORM_WINDOWS \
|
|
#elif BX_PLATFORM_WINDOWS \
|
|
|
|| BX_PLATFORM_WINRT \
|
|
|| BX_PLATFORM_WINRT \
|
|
|
|| BX_PLATFORM_XBOXONE \
|
|
|| BX_PLATFORM_XBOXONE \
|
|
@@ -243,7 +233,7 @@ namespace bx
|
|
|
|| BX_PLATFORM_IOS \
|
|
|| BX_PLATFORM_IOS \
|
|
|
|| BX_PLATFORM_VISIONOS
|
|
|| BX_PLATFORM_VISIONOS
|
|
|
pthread_setname_np(_name);
|
|
pthread_setname_np(_name);
|
|
|
-#elif (BX_CRT_GLIBC >= 21200)
|
|
|
|
|
|
|
+#elif BX_CRT_GLIBC
|
|
|
pthread_setname_np(ti->m_handle, _name);
|
|
pthread_setname_np(ti->m_handle, _name);
|
|
|
#elif BX_PLATFORM_LINUX
|
|
#elif BX_PLATFORM_LINUX
|
|
|
prctl(PR_SET_NAME,_name, 0, 0, 0);
|
|
prctl(PR_SET_NAME,_name, 0, 0, 0);
|