blob: 0d8fcf61b2366421e9f335c45bc2e6f5d01e3363 (
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
32
|
$NetBSD: patch-ai,v 1.4 2014/02/13 10:10:06 mrg Exp $
--- InOut/widgets.cpp.orig 2013-01-07 04:49:34.000000000 -0800
+++ InOut/widgets.cpp 2014-02-12 20:48:11.000000000 -0800
@@ -2019,7 +2019,7 @@
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
@@ -2039,7 +2039,7 @@
#ifdef WIN32
HWND xid = fl_xid(ST(fl_windows)[panelNum].panel);
ST(VSTplugEditors)[k]->SetEditWindow(xid);
-#elif defined (LINUX) || defined(MACOSX)
+#elif defined (LINUX) || defined(MACOSX) || defined(__NetBSD__) || defined(__DragonFly__)
// put some appropriate alternative code here
Fl_Window * xid = fl_find(fl_xid(ST(fl_windows)[panelNum].panel));
ST(VSTplugEditors)[k]->SetEditWindow(xid);
@@ -2166,8 +2166,7 @@
CSOUND *csound = p->csound;
char *command = (char *)csound->Malloc(csound, strlen(p->commandString) + 1);
-#if defined(LINUX) || defined (MACOSX)
-
+#if defined(LINUX) || defined (MACOSX) || defined(__NetBSD__) || defined(__DragonFly__)
pid_t pId = vfork();
if (pId == 0) {
|