blob: 32ba8017fa8350410b11f414c3f5b5f759d85054 (
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
33
|
$NetBSD: patch-InOut_winFLTK.c,v 1.2 2014/08/05 05:12:38 mrg Exp $
Add NetBSD and DragonFlyBSD support.
--- InOut/winFLTK.c.orig 2014-01-07 08:53:47.000000000 -0800
+++ InOut/winFLTK.c 2014-02-12 23:47:05.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
@@ -83,7 +83,7 @@
fltkFlags = getFLTKFlagsPtr(csound);
if (((*fltkFlags) & 2) == 0 &&
!(oparms.graphsoff || oparms.postscript)) {
-#ifdef LINUX
+#if defined(LINUX) || defined(__NetBSD__) || defined(__DragonFly__)
Display *dpy = XOpenDisplay(NULL);
if (dpy != NULL) {
XCloseDisplay(dpy);
@@ -104,7 +104,7 @@
csound->Message(csound, "graph init \n");
}
-#ifdef LINUX
+#if defined(LINUX) || defined(__NetBSD__) || defined(__DragonFly__)
}
#endif
}
|