radare2: fix musl
This commit is contained in:
parent
97f2036e5d
commit
9a5fbd4f8e
1 changed files with 11 additions and 0 deletions
11
srcpkgs/radare2/patches/musl.patch
Normal file
11
srcpkgs/radare2/patches/musl.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- 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);
|
Loading…
Reference in a new issue