Skip to content

Commit

Permalink
fixed linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
vlazzarini committed Dec 14, 2017
1 parent cf10758 commit cdc54a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Engine/musmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ extern void remote_Cleanup(CSOUND *);
extern char **csoundGetSearchPathFromEnv(CSOUND *, const char *);

#ifdef HAVE_PTHREAD_SPIN_LOCK
#define RT_SPIN_TRYLOCK { if(csound->oparms->realtime) \
int trylock = pthread_spin_trylock(&csound->allo_spinlock); \
#define RT_SPIN_TRYLOCK { int trylock; \
if(csound->oparms->realtime) \
trylock = pthread_spin_trylock(&csound->alloc_spinlock); \
if(trylock = 0) {
#else
#define RT_SPIN_TRYLOCK csoundSpinLock(&csound->alloc_spinlock);
Expand Down

0 comments on commit cdc54a4

Please sign in to comment.