summaryrefslogtreecommitdiff
path: root/audio/csound5/patches/patch-al
blob: 672aabf7ac8734e67236eebd1a6a0ff0f0be622f (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-al,v 1.2 2006/05/29 19:44:24 joerg Exp $

--- InOut/winFLTK.c.orig	2005-12-30 07:21:18.000000000 -0800
+++ InOut/winFLTK.c
@@ -29,7 +29,7 @@
 #include <stdio.h>
 #include "cwindow.h"
 
-#ifdef LINUX
+#if defined(LINUX) || defined(__NetBSD__) || defined(__DragonFly__)
 #include <X11/Xlib.h>
 #endif
 
@@ -54,7 +54,7 @@ static void KillGraph_FLTK(CSOUND *csoun
 
 void set_display_callbacks(CSOUND *csound)
 {
-#ifdef LINUX
+#if defined(LINUX) || defined(__NetBSD__) || defined(__DragonFly__)
     Display *dpy = XOpenDisplay(NULL);
     if (dpy == NULL)
       return;