[gamin] [PATCH] Fix build with musl C library
- From: Baruch Siach <baruch tkos co il>
- To: Daniel Veillard <veillard redhat com>, Olav Vitters <olav vitters nl>
- Cc: gamin-list gnome org
- Subject: [gamin] [PATCH] Fix build with musl C library
- Date: Fri, 1 Apr 2016 11:36:17 +0300
The musl C library does not provide the non portable
PTHREAD_MUTEX_RECURSIVE_NP. Test for PTHREAD_MUTEX_RECURSIVE_NP only.
---
libgamin/gam_data.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libgamin/gam_data.c b/libgamin/gam_data.c
index c0ea893bad11..25ac657a48d7 100644
--- a/libgamin/gam_data.c
+++ b/libgamin/gam_data.c
@@ -470,7 +470,7 @@ gamin_data_new(void)
}
if (is_threaded > 0) {
pthread_mutexattr_init(&attr);
-#if defined(linux) || defined(PTHREAD_MUTEX_RECURSIVE_NP)
+#if defined(PTHREAD_MUTEX_RECURSIVE_NP)
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
#else
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
--
2.8.0.rc3
[Date Prev][Date Next] [Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]