libs/rem: fix build with musl

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle 2015-06-24 13:22:21 +02:00 committed by Zoltan HERPAI
parent c059f12958
commit ce3849c053

View file

@ -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)