From 9a5fbd4f8ee9961f307b7e9335c09ab8879e79d0 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Tue, 30 May 2017 19:51:25 +0200 Subject: [PATCH] radare2: fix musl --- srcpkgs/radare2/patches/musl.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 srcpkgs/radare2/patches/musl.patch 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);