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:
lemmi 2015-07-06 19:43:04 -07:00 committed by jp9000
parent 740e0084a0
commit 0cdc53c0f0

View File

@ -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
}