Fix for NetBSD

This commit is contained in:
NishiOwO
2025-03-23 00:42:51 +09:00
parent 81141c574c
commit 50e77917d5
6 changed files with 21 additions and 5 deletions

View File

@@ -836,7 +836,7 @@ plat_set_thread_name(void *thread, const char *name)
# if defined(Q_OS_DARWIN)
pthread_setname_np(truncated);
# elif defined(Q_OS_NETBSD)
pthread_setname_np(thread ? *((pthread_t *) thread) : pthread_self(), truncated, "%s");
pthread_setname_np(thread ? *((pthread_t *) thread) : pthread_self(), truncated, (void*)"%s");
# elif defined(__HAIKU__)
rename_thread(find_thread(NULL), truncated);
# elif defined(Q_OS_OPENBSD)