Commit 534aeac4 authored by Federico G. Schwindt's avatar Federico G. Schwindt

Use some casting foo to get this building

NetBSD's pthread_setname_np(3) wants a void *. Sigh.
parent aed3e68f
......@@ -98,7 +98,7 @@ THR_SetName(const char *name)
#if defined(__APPLE__)
pthread_setname_np(name);
#elif defined(__NetBSD__)
pthread_setname_np(pthread_self(), "%s", name);
pthread_setname_np(pthread_self(), "%s", (char *)(uintptr_t)name);
#else
pthread_setname_np(pthread_self(), name);
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment