1 Fix missing PTHREAD_MUTEX_RECURSIVE_NP
3 The musl C library does not provide the non portable
4 PTHREAD_MUTEX_RECURSIVE_NP. Test for PTHREAD_MUTEX_RECURSIVE_NP only.
6 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
9 diff -Nuar gamin-0.1.10-orig/libgamin/gam_data.c gamin-0.1.10/libgamin/gam_data.c
10 --- gamin-0.1.10-orig/libgamin/gam_data.c 2007-07-04 16:36:48.000000000 +0300
11 +++ gamin-0.1.10/libgamin/gam_data.c 2016-03-01 14:50:18.931696959 +0200
14 if (is_threaded > 0) {
15 pthread_mutexattr_init(&attr);
16 -#if defined(linux) || defined(PTHREAD_MUTEX_RECURSIVE_NP)
17 +#if defined(PTHREAD_MUTEX_RECURSIVE_NP)
18 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
20 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);