mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 782521 - Don't use const for pthread_setname_np's 3rd arg on NetBSD. r=cjones
This commit is contained in:
parent
6b8bb27da3
commit
4e4814bd33
@ -86,7 +86,7 @@ void PlatformThread::SetName(const char* name) {
|
||||
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
|
||||
pthread_set_name_np(pthread_self(), name);
|
||||
#elif defined(__NetBSD__)
|
||||
pthread_setname_np(pthread_self(), "%s", name);
|
||||
pthread_setname_np(pthread_self(), "%s", (void *)name);
|
||||
#else
|
||||
prctl(PR_SET_NAME, reinterpret_cast<uintptr_t>(name), 0, 0, 0);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user