summaryrefslogtreecommitdiff
path: root/audio/timidity/patches/patch-timidity_midi_a__c.c
blob: 098b4b548dc97e6b429b88e45bd889b90ad39fe6 (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-timidity_midi_a__c.c,v 1.2 2017/03/30 18:44:13 nat Exp $

Some MIDI definitions are missing on some platform's soundcard.h, so just use
internal definitions everywhere.

--- timidity/midi_a.c.orig	2009-03-14 15:49:59.000000000 +0000
+++ timidity/midi_a.c
@@ -49,14 +49,7 @@
 #endif
 #include <fcntl.h>
 #include <stdlib.h>
-#ifdef HAVE_SYS_SOUNDCARD_H
-#include <sys/soundcard.h>
-#if defined(__NetBSD__) || defined(__OpenBSD__)
-#include <sys/midiio.h>
-#endif
-#else
 #include "server_defs.h"
-#endif /* HAVE_SYS_SOUNDCARD_H */
 #ifdef WIN32
 #ifndef STDOUT_FILENO
 #define STDOUT_FILENO 1