11 lines
627 B
Diff
11 lines
627 B
Diff
--- mono/utils/mono-os-mutex.h 2019-09-25 17:24:27.868901488 +0200
|
|
+++ mono/utils/mono-os-mutex.h 2019-09-25 17:24:46.344659000 +0200
|
|
@@ -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 (PTHREAD_PRIO_INHERIT) && HAVE_DECL_PTHREAD_MUTEXATTR_SETPROTOCOL
|
|
+#if 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))
|