diff options
Diffstat (limited to 'common/threads.c')
-rw-r--r-- | common/threads.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/threads.c b/common/threads.c index 0761a324..dbd196e8 100644 --- a/common/threads.c +++ b/common/threads.c @@ -500,6 +500,8 @@ void althrd_setname(althrd_t thr, const char *name) #if defined(PTHREAD_SETNAME_NP_ONE_PARAM) if(althrd_equal(thr, althrd_current())) pthread_setname_np(name); +#elif defined(PTHREAD_SETNAME_NP_THREE_PARAMS) + pthread_setname_np(thr, "%s", (void*)name); #else pthread_setname_np(thr, name); #endif |