aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends
diff options
context:
space:
mode:
Diffstat (limited to 'backends')
-rw-r--r--backends/jack.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/backends/jack.c b/backends/jack.c
index f73ada8..efcd8d5 100644
--- a/backends/jack.c
+++ b/backends/jack.c
@@ -607,7 +607,11 @@ static int mmjack_start(){
//prepare mutex attributes because the initializer macro for adaptive mutexes is a GNU extension...
if(pthread_mutexattr_init(&mutex_attr)
+#ifndef __APPLE__
|| pthread_mutexattr_settype(&mutex_attr, PTHREAD_MUTEX_ADAPTIVE_NP)){
+#else
+ }
+#endif
fprintf(stderr, "Failed to initialize mutex attributes\n");
goto bail;
}