12 lines
452 B
Diff
12 lines
452 B
Diff
|
--- libr/util/thread_lock.c.orig 2017-05-30 18:46:34.000000000 +0200
|
||
|
+++ libr/util/thread_lock.c 2017-05-30 19:30:50.261893137 +0200
|
||
|
@@ -13,7 +13,7 @@
|
||
|
if (recursive) {
|
||
|
pthread_mutexattr_t attr;
|
||
|
pthread_mutexattr_init (&attr);
|
||
|
-#if !__linux__ || __USE_UNIX98__
|
||
|
+#if !defined(__GLIBC__) || __USE_UNIX98__
|
||
|
pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE);
|
||
|
#else
|
||
|
pthread_mutexattr_settype (&attr, PTHREAD_MUTEX_RECURSIVE_NP);
|