$NetBSD: patch-ab,v 1.1 2005/10/04 19:23:39 joerg Exp $ --- csound/mididevice.c.orig 2005-07-22 18:27:05.000000000 +0000 +++ csound/mididevice.c @@ -79,7 +79,7 @@ struct pollfd midipoll; # include # define INBAUD EXTB static struct sgttyb tty; -#elif defined(LINUX) || defined(NETBSD) /* J. Mohr 1995 Oct 17 */ +#elif defined(LINUX) || defined(NETBSD) || defined(__DragonFly__) /* J. Mohr 1995 Oct 17 */ # include # include @@ -366,7 +366,7 @@ void OpenMIDIDevice(void) /* allocate the message structure */ in_msg = (msg_header_t *)mmalloc(MSG_SIZE_MAX); } -#elif defined(LINUX) || defined(NETBSD) +#elif defined(LINUX) || defined(NETBSD) || defined(__DragonFly__) # ifdef HAVE_TERMIOS_H if (isatty(rtfd)) { if (tcgetattr(rtfd, &tty) < 0) { @@ -521,7 +521,7 @@ long GetMIDIData(void) #ifdef SGI /* for new SGI media library implementation*/ int i, j; #endif -#if defined(LINUX) || defined(NETBSD) +#if defined(LINUX) || defined(NETBSD) || defined(__DragonFly__) /* For select() call, from David Ratajczak */ fd_set rfds; struct timeval tv; @@ -543,7 +543,7 @@ long GetMIDIData(void) return (long)n; /* JPff added 23 Jun 2004 */ } else return(0) ; -#elif defined(LINUX) || defined(NETBSD) +#elif defined(LINUX) || defined(NETBSD) || defined(__DragonFly__) /******** NEW STUFF **********/ /* from David Ratajczak */ /* Use select() to make truly */ /* non-blocking call to midi */