void-packages/srcpkgs/contour/patches/0000-phtread_musl.patch

16 lines
285 B
Diff
Raw Normal View History

2023-12-11 13:22:56 +01:00
--- a/src/crispy/utils.cpp
+++ b/src/crispy/utils.cpp
@@ -31,8 +31,12 @@
}
return ""s;
#else
+ #ifdef __GLIBC__
char text[32] = {};
pthread_getname_np(pthread_self(), text, sizeof(text));
return text;
+ #else
+ return ""s;
+ #endif
#endif
}