From: Daniel Golle Date: Wed, 24 Jun 2015 11:22:21 +0000 (+0200) Subject: libs/rem: fix build with musl X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ce3849c053f50924f372f7bce3c308f7bd3f3d26;p=feed%2Ftelephony.git libs/rem: fix build with musl Signed-off-by: Daniel Golle --- 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)