$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
     }
