From 491c3f8e2fc6de0041605528f69bdeb4128eac65 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Mon, 2 May 2016 23:14:51 +0200 Subject: [PATCH] Adapt to calling convention on NetBSD. Signed-off-by: Thomas Klausner --- include/bx/thread.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/bx/thread.h b/include/bx/thread.h index 0cdc1f4..532ae87 100644 --- a/include/bx/thread.h +++ b/include/bx/thread.h @@ -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