void-packages/srcpkgs/qtcreator/patches/musl.patch

12 lines
341 B
Diff

--- a/src/libs/nanotrace/nanotracehr.cpp
+++ b/src/libs/nanotrace/nanotracehr.cpp
@@ -91,7 +91,7 @@ std::string getThreadName()
{
std::array<char, 200> buffer;
buffer[0] = 0;
-#ifdef Q_OS_UNIX
+#ifdef __GLIBC__
auto rc = pthread_getname_np(pthread_self(), buffer.data(), buffer.size());
if (rc != 0)
return {};