Merge pull request #1688 from yangfl/openssl
disable pthread_setname_np on GNU/Hurd
This commit is contained in:
dr|z3d 2021-09-05 23:53:06 +00:00
commit 82c504e082

View file

@ -129,7 +129,7 @@ namespace util
pthread_set_name_np(pthread_self(), name); pthread_set_name_np(pthread_self(), name);
#elif defined(__NetBSD__) #elif defined(__NetBSD__)
pthread_setname_np(pthread_self(), "%s", (void *)name); pthread_setname_np(pthread_self(), "%s", (void *)name);
#else #elif !defined(__gnu_hurd__)
pthread_setname_np(pthread_self(), name); pthread_setname_np(pthread_self(), name);
#endif #endif
} }