Import of pkgsrc-2014Q1
This commit is contained in:
32
audio/csound6/patches/patch-InOut_widgets.cpp
Normal file
32
audio/csound6/patches/patch-InOut_widgets.cpp
Normal file
@@ -0,0 +1,32 @@
|
||||
$NetBSD: patch-InOut_widgets.cpp,v 1.1 2014/03/06 10:16:53 mrg Exp $
|
||||
|
||||
--- InOut/widgets.cpp.orig 2014-01-07 08:53:47.000000000 -0800
|
||||
+++ InOut/widgets.cpp 2014-02-12 23:46:20.000000000 -0800
|
||||
@@ -2107,7 +2107,7 @@
|
||||
(WIDGET_GLOBALS *)csound->QueryGlobalVariable(csound, "WIDGET_GLOBALS");
|
||||
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
|
||||
@@ -2127,7 +2127,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);
|
||||
@@ -2258,8 +2258,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) {
|
||||
Reference in New Issue
Block a user