aboutsummaryrefslogtreecommitdiffstats
path: root/main/gamin/fix-pthread-mutex.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-09-27 14:07:36 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-09-27 14:22:24 +0000
commita1a836b089573752c1b0da7d144c0948b04e8ea8 (patch)
tree4e6af4ae2c6910311cd5066cec0bcfe3c664a65a /main/gamin/fix-pthread-mutex.patch
parent8d2c903bee89abe26bbedcb9c87d9b4977ca5887 (diff)
downloadaports-a1a836b089573752c1b0da7d144c0948b04e8ea8.tar.bz2
aports-a1a836b089573752c1b0da7d144c0948b04e8ea8.tar.xz
main/gamin: fix non portable mutex type usage (fixes musl build)
Diffstat (limited to 'main/gamin/fix-pthread-mutex.patch')
-rw-r--r--main/gamin/fix-pthread-mutex.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/gamin/fix-pthread-mutex.patch b/main/gamin/fix-pthread-mutex.patch
new file mode 100644
index 0000000000..c8c5b0005c
--- /dev/null
+++ b/main/gamin/fix-pthread-mutex.patch
@@ -0,0 +1,11 @@
+--- gamin-0.1.10.orig/libgamin/gam_data.c
++++ gamin-0.1.10/libgamin/gam_data.c
+@@ -470,7 +470,7 @@
+ }
+ if (is_threaded > 0) {
+ pthread_mutexattr_init(&attr);
+-#if defined(linux) || defined(PTHREAD_MUTEX_RECURSIVE_NP)
++#if defined(linux) && defined(PTHREAD_MUTEX_RECURSIVE_NP)
+ pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
+ #else
+ pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);