diff --git a/srcpkgs/radare2/patches/musl.patch b/srcpkgs/radare2/patches/musl.patch new file mode 100644 index 00000000000..b60521c7005 --- /dev/null +++ b/srcpkgs/radare2/patches/musl.patch @@ -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);