summaryrefslogtreecommitdiff
path: root/audio/fluidsynth/patches/patch-ab
blob: 4d6f7a357ae23e902f37d0840e930d949c456927 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$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);