From b05a0b7acb4a8df26e2b6ebcea0033b7761bfed5 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Wed, 24 Jun 2015 13:22:21 +0200 Subject: [PATCH] libs/rem: fix build with musl Signed-off-by: Daniel Golle --- ...0-no-pthread_rwlockattr_setkind_np-on-musl.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 libs/rem/patches/100-no-pthread_rwlockattr_setkind_np-on-musl.patch diff --git a/libs/rem/patches/100-no-pthread_rwlockattr_setkind_np-on-musl.patch b/libs/rem/patches/100-no-pthread_rwlockattr_setkind_np-on-musl.patch new file mode 100644 index 0000000..43e6d32 --- /dev/null +++ b/libs/rem/patches/100-no-pthread_rwlockattr_setkind_np-on-musl.patch @@ -0,0 +1,13 @@ +Index: rem-0.4.6/src/vidmix/vidmix.c +=================================================================== +--- rem-0.4.6.orig/src/vidmix/vidmix.c ++++ rem-0.4.6/src/vidmix/vidmix.c +@@ -343,7 +343,7 @@ int vidmix_alloc(struct vidmix **mixp) + return err; + } + +-#ifdef LINUX ++#if defined(LINUX) && defined(__GLIBC__) + err = pthread_rwlockattr_setkind_np(&attr, + PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP); + if (err) -- 2.30.2