summaryrefslogtreecommitdiff
path: root/audio/csound5/patches/patch-ai
blob: fa5fa9ca19ecf8ca6097aa5adee7d703a95b6330 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ai,v 1.2 2006/05/29 19:44:24 joerg Exp $

--- InOut/widgets.cpp.orig	2006-02-15 10:25:55.000000000 -0800
+++ InOut/widgets.cpp
@@ -29,7 +29,7 @@
 #  include <windows.h>
 #endif /* defined(WIN32) */
 
-#if defined(LINUX)
+#if defined(LINUX) || defined(__NetBSD__) || defined(__DragonFly__)
 #  include <pthread.h>
 #  include <sched.h>
 #  include <sys/time.h>
@@ -1722,7 +1722,7 @@ static uintptr_t fltkRun(void *userdata)
 
   p = (widgetsGlobals_t*) csound->QueryGlobalVariable(csound,
                                                       "_widgets_globals");
-#ifdef LINUX
+#if defined(LINUX) || defined(__NetBSD__) || defined(__DragonFly__)
   {
     struct sched_param  sp;
     // IV - Aug 27 2002: widget thread is always run with normal priority