$NetBSD: patch-ab,v 1.2 2007/12/16 15:18:29 adam Exp $ --- src/fluid_sys.c.orig 2007-11-11 20:47:30.000000000 +0100 +++ src/fluid_sys.c @@ -709,8 +709,10 @@ new_fluid_timer(int msec, fluid_timer_ca { pthread_attr_t *attr = NULL; pthread_attr_t rt_attr; +#if !defined(__NetBSD__) int sched = SCHED_FIFO; struct sched_param priority; +#endif int err; fluid_timer_t* timer = FLUID_NEW(fluid_timer_t); @@ -726,6 +728,7 @@ new_fluid_timer(int msec, fluid_timer_ca timer->auto_destroy = auto_destroy; err = pthread_attr_init(&rt_attr); +#if !defined(__NetBSD__) if (err == 0) { err = pthread_attr_setschedpolicy(&rt_attr, SCHED_FIFO); if (err == 0) { @@ -736,6 +739,7 @@ new_fluid_timer(int msec, fluid_timer_ca } } } +#endif if (new_thread) { err = pthread_create(&timer->thread, attr, fluid_timer_start, (void*) timer);