mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 04:53:06 +01:00
Adapt to calling convention on NetBSD.
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
This commit is contained in:
@@ -161,7 +161,11 @@ namespace bx
|
||||
prctl(PR_SET_NAME,_name, 0, 0, 0);
|
||||
# endif // defined(__GLIBC__) ...
|
||||
#elif BX_PLATFORM_BSD
|
||||
#ifdef __NetBSD__
|
||||
pthread_setname_np(m_handle, "%s", (void *)_name);
|
||||
#else
|
||||
pthread_setname_np(m_handle, _name);
|
||||
#endif
|
||||
#elif BX_PLATFORM_WINDOWS && BX_COMPILER_MSVC
|
||||
# pragma pack(push, 8)
|
||||
struct ThreadName
|
||||
|
||||
Reference in New Issue
Block a user