From 1cea503e08bd8103a59c64024a32523ef4dd5076 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 9 May 2007 04:56:07 +0000 Subject: #ifdef'ed out sched_setscheduler on Mac OS X since its not supported there svn path=/trunk/externals/pidip/; revision=7636 --- modules/pdp_icedthe~.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/pdp_icedthe~.c') diff --git a/modules/pdp_icedthe~.c b/modules/pdp_icedthe~.c index bd4970d..34a4351 100644 --- a/modules/pdp_icedthe~.c +++ b/modules/pdp_icedthe~.c @@ -488,10 +488,12 @@ static void *pdp_icedthe_decode(void *tdata) twait.tv_nsec = 25000000; // 25 ms schedprio.sched_priority = sched_get_priority_min(SCHED_FIFO) + x->x_priority; +#ifdef __gnu_linux__ if ( sched_setscheduler(0, SCHED_FIFO, &schedprio) == -1) { post("pdp_icedthe~ : couldn't set priority for decoding thread."); } +#endif while ( x->x_decodechild ) { -- cgit v1.2.1