summaryrefslogtreecommitdiff
path: root/audio/csound5/patches/patch-al
blob: f5ab8362a52b49e1d252b83662ebff71df408c05 (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-al,v 1.3 2014/02/13 10:10:06 mrg Exp $

--- InOut/winFLTK.c.orig	2013-01-07 04:49:34.000000000 -0800
+++ InOut/winFLTK.c	2014-02-12 20:51:49.000000000 -0800
@@ -29,7 +29,7 @@
 #include <stdio.h>
 #include "cwindow.h"
 
-#ifdef LINUX
+#if defined(LINUX) || defined(__NetBSD__) || defined(__DragonFly__)
 #include <X11/Xlib.h>
 #endif
 
@@ -81,7 +81,7 @@
     fltkFlags = getFLTKFlagsPtr(csound);
     if (((*fltkFlags) & 2) == 0 &&
         !(csound->oparms->graphsoff || csound->oparms->postscript)) {
-#ifdef LINUX
+#if defined(LINUX) || defined(__NetBSD__) || defined(__DragonFly__)
       Display *dpy = XOpenDisplay(NULL);
       if (dpy != NULL) {
         XCloseDisplay(dpy);
@@ -105,7 +105,7 @@
           csound->Message(csound, "graph init \n");
 
         }
-#ifdef LINUX
+#if defined(LINUX) || defined(__NetBSD__) || defined(__DragonFly__)
       }
 #endif
     }