libobs/util: Make pthread_setname_np glibc only
Fixes an issue with certain distributions that don't use glibc (particularly musl) Closes jp9000/obs-studio#441
This commit is contained in:
parent
740e0084a0
commit
0cdc53c0f0
@ -267,7 +267,7 @@ void os_set_thread_name(const char *name)
|
||||
pthread_setname_np(name);
|
||||
#elif defined(__FreeBSD__)
|
||||
pthread_set_name_np(pthread_self(), name);
|
||||
#elif !defined(__MINGW32__)
|
||||
#elif defined(__GLIBC__) && !defined(__MINGW32__)
|
||||
pthread_setname_np(pthread_self(), name);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user