summaryrefslogtreecommitdiffstats
path: root/osdep/threads.c
diff options
context:
space:
mode:
Diffstat (limited to 'osdep/threads.c')
-rw-r--r--osdep/threads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/threads.c b/osdep/threads.c
index e4bd0b7758..53d332396d 100644
--- a/osdep/threads.c
+++ b/osdep/threads.c
@@ -47,7 +47,7 @@ void mpthread_set_name(const char *name)
tname[15] = '\0'; // glibc-checked kernel limit
pthread_setname_np(pthread_self(), tname);
}
-#elif HAVE_BSD_THREAD_NAME
+#elif HAVE_WIN32_INTERNAL_PTHREADS || HAVE_BSD_THREAD_NAME
pthread_set_name_np(pthread_self(), tname);
#elif HAVE_NETBSD_THREAD_NAME
pthread_setname_np(pthread_self(), "%s", (void *)tname);