void-packages/srcpkgs/qt5/patches/qt-musl-set_thread_name_np....

12 lines
553 B
Diff

--- qtwebengine/src/3rdparty/chromium/third_party/usrsctp/usrsctplib/usrsctplib/netinet/sctp_userspace.c 2016-11-07 15:46:18.000000000 +0100
+++ qtwebengine/src/3rdparty/chromium/third_party/usrsctp/usrsctplib/usrsctplib/netinet/sctp_userspace.c 2016-12-20 07:41:38.408483734 +0100
@@ -71,7 +71,7 @@
#if defined(__Userspace_os_Darwin)
pthread_setname_np(name);
#endif
-#if defined(__Userspace_os_Linux)
+#if defined(__Userspace_os_Linux) && defined(__GLIBC__)
pthread_setname_np(pthread_self(), name);
#endif
#if defined(__Userspace_os_FreeBSD)