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

12 lines
677 B
Diff

--- a/mono/utils/mono-os-mutex.h 2019-12-11 22:05:32.992353279 +0100
+++ b/mono/utils/mono-os-mutex.h 2019-12-11 22:05:50.267114788 +0100
@@ -57,7 +57,7 @@
if (G_UNLIKELY (res != 0))
g_error ("%s: pthread_mutexattr_settype failed with \"%s\" (%d)", __func__, g_strerror (res), res);
-#if !defined(__HAIKU__) && defined (PTHREAD_PRIO_INHERIT) && HAVE_DECL_PTHREAD_MUTEXATTR_SETPROTOCOL
+#if !defined(__HAIKU__) && defined (PTHREAD_PRIO_INHERIT) && HAVE_DECL_PTHREAD_MUTEXATTR_SETPROTOCOL && defined(__GLIBC__)
/* use PTHREAD_PRIO_INHERIT if possible */
res = pthread_mutexattr_setprotocol (&attr, PTHREAD_PRIO_INHERIT);
if (G_UNLIKELY (res != 0 && res != ENOTSUP))