summaryrefslogtreecommitdiff
path: root/audio/csound4/patches/patch-ab
blob: ee55850fb5891695114b3f8701b5c07772bc7a6b (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
34
35
36
37
38
39
40
$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 <sgtty.h>
 #    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 <sys/time.h>
 #    include <unistd.h>
 
@@ -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  */