diff -rN -u old-stream-engine/src/stream-engine-main.c new-stream-engine/src/stream-engine-main.c --- old-stream-engine/src/stream-engine-main.c 2006-08-11 16:00:16.000000000 +0200 +++ new-stream-engine/src/stream-engine-main.c 2006-08-11 16:00:16.000000000 +0200 @@ -83,9 +83,12 @@ memset(&schedp, 0x00, sizeof(schedp)); schedp.sched_priority = sched_get_priority_min(prio_policy) + prio_delta; /* 0 pid equals to getpid() ie. current process */ +#if defined(__APPLE__) && defined(__MACH__) +#else if (sched_setscheduler(0, prio_policy, &schedp) == -1) { perror("sched_setscheduler()"); } +#endif /* nail everything to RAM, needed for realtime on systems with swap, * also avoids extra calls to vm subsystem */ /*if (mlockall(MCL_CURRENT|MCL_FUTURE) == -1) {