Browse Source

fix Mac OS X compile errors

git-svn-id: svn+ssh://jackaudio.org/trunk/jack@755 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.109.0
joq 21 years ago
parent
commit
02c444da1b
2 changed files with 5 additions and 5 deletions
  1. +0
    -2
      libjack/client.c
  2. +5
    -3
      libjack/thread.c

+ 0
- 2
libjack/client.c View File

@@ -34,9 +34,7 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#ifdef USE_MLOCK
#include <sys/mman.h>
#endif /* USE_MLOCK */

#include <jack/internal.h>
#include <jack/jack.h>


+ 5
- 3
libjack/thread.c View File

@@ -58,11 +58,13 @@ jack_create_thread (pthread_t* thread,
void*(*start_routine)(void*),
void* arg)
{
#ifndef JACK_USE_MACH_THREADS
pthread_attr_t attr;
int policy;
struct sched_param param;
int actual_policy;
struct sched_param actual_param;
#endif /* JACK_USE_MACH_THREADS */
int result = 0;

if (!realtime) {
@@ -192,7 +194,7 @@ jack_create_thread (pthread_t* thread,
/* time constraint thread */
setThreadToPriority (*thread, 96, TRUE, 10000000);
#endif
#endif /* JACK_USE_MACH_THREADS */

return 0;
}
@@ -214,7 +216,7 @@ jack_acquire_real_time_scheduling (pthread_t thread, int priority)
return 0;
}

#else
#else /* !JACK_USE_MACH_THREADS */

int
jack_drop_real_time_scheduling (pthread_t thread)
@@ -251,4 +253,4 @@ jack_acquire_real_time_scheduling (pthread_t thread, int priority)
return 0;
}

#endif
#endif /* JACK_USE_MACH_THREADS */

Loading…
Cancel
Save