libs/rem: fix build with musl
authorDaniel Golle <daniel@makrotopia.org>
Wed, 24 Jun 2015 11:22:21 +0000 (13:22 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 24 Jun 2015 11:22:21 +0000 (13:22 +0200)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libs/rem/patches/100-no-pthread_rwlockattr_setkind_np-on-musl.patch [new file with mode: 0644]

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 (file)
index 0000000..43e6d32
--- /dev/null
@@ -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)