a62a108b80
- inlude sndio(7) midi support from ratchov@ - 'libsndio' -> 'sndio' renaming throughout - completely disable OSS support
31 lines
952 B
Plaintext
31 lines
952 B
Plaintext
$OpenBSD: patch-src_fluid_sys_c,v 1.2 2009/10/15 15:44:50 jakemsr Exp $
|
|
--- src/fluid_sys.c.orig Tue Feb 3 23:29:24 2009
|
|
+++ src/fluid_sys.c Tue Oct 13 20:47:41 2009
|
|
@@ -889,8 +889,10 @@ new_fluid_timer(int msec, fluid_timer_callback_t callb
|
|
{
|
|
pthread_attr_t *attr = NULL;
|
|
pthread_attr_t rt_attr;
|
|
+#if !defined(__OpenBSD__)
|
|
int sched = SCHED_FIFO;
|
|
struct sched_param priority;
|
|
+#endif
|
|
int err;
|
|
|
|
fluid_timer_t* timer = FLUID_NEW(fluid_timer_t);
|
|
@@ -906,6 +908,7 @@ new_fluid_timer(int msec, fluid_timer_callback_t callb
|
|
timer->auto_destroy = auto_destroy;
|
|
|
|
err = pthread_attr_init(&rt_attr);
|
|
+#if !defined(__OpenBSD__)
|
|
if (err == 0) {
|
|
err = pthread_attr_setschedpolicy(&rt_attr, SCHED_FIFO);
|
|
if (err == 0) {
|
|
@@ -916,6 +919,7 @@ new_fluid_timer(int msec, fluid_timer_callback_t callb
|
|
}
|
|
}
|
|
}
|
|
+#endif
|
|
|
|
if (new_thread) {
|
|
err = pthread_create(&timer->thread, attr, fluid_timer_start, (void*) timer);
|