More non-cppthreads build fixes

This commit is contained in:
RichardG867
2024-01-09 20:28:10 -03:00
parent 30043d7b00
commit 02a1a8ec1b
4 changed files with 4 additions and 4 deletions

View File

@@ -783,7 +783,7 @@ plat_set_thread_name(void *thread, const char *name)
if (!thread)
pthread_setname_np(truncated);
# else
pthread_setname_np(thread ? (pthread_t) thread : pthread_self(), truncated);
pthread_setname_np(thread ? *((pthread_t *) thread) : pthread_self(), truncated);
# endif
#endif
}