aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends
diff options
context:
space:
mode:
Diffstat (limited to 'backends')
-rw-r--r--backends/jack.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/backends/jack.c b/backends/jack.c
index 48a6b68..b3aacd4 100644
--- a/backends/jack.c
+++ b/backends/jack.c
@@ -11,6 +11,12 @@
#define BACKEND_NAME "jack"
#define JACKEY_SIGNAL_TYPE "http://jackaudio.org/metadata/signal-type"
+#ifdef __APPLE__
+ #ifndef PTHREAD_MUTEX_ADAPTIVE_NP
+ #define PTHREAD_MUTEX_ADAPTIVE_NP PTHREAD_MUTEX_DEFAULT
+ #endif
+#endif
+
//FIXME pitchbend range is somewhat oob
static struct /*_mmjack_backend_cfg*/ {
@@ -607,11 +613,7 @@ 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;
}