diff options
author | cbdev <cb@cbcdn.com> | 2019-11-06 21:22:09 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2019-11-06 21:22:09 +0100 |
commit | 20eb48ce4ccffe88b22ecd6a93bc9e097e5aa498 (patch) | |
tree | e64b6fdffc06ad845b1d21be5e90ee32af8150ff /backends | |
parent | be38eb9ddd1b82a87cf26884dd13ccb6dff5eebf (diff) | |
download | midimonster-20eb48ce4ccffe88b22ecd6a93bc9e097e5aa498.tar.gz midimonster-20eb48ce4ccffe88b22ecd6a93bc9e097e5aa498.tar.bz2 midimonster-20eb48ce4ccffe88b22ecd6a93bc9e097e5aa498.zip |
Use default mutex type for OSX
Diffstat (limited to 'backends')
-rw-r--r-- | backends/jack.c | 4 |
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; } |