summaryrefslogtreecommitdiff
path: root/audio/timidity/patches/patch-timidity_midi_a__c.c
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2012-07-24 19:47:43 +0000
committerjperkin <jperkin@pkgsrc.org>2012-07-24 19:47:43 +0000
commitfec8da16d38023e2651b678c48ad9bcf52036a5c (patch)
tree034004173fd638646962feac37c3ca156c805938 /audio/timidity/patches/patch-timidity_midi_a__c.c
parent6976037fe1f71fef253adbcb82e61a658b01402b (diff)
downloadpkgsrc-fec8da16d38023e2651b678c48ad9bcf52036a5c.tar.gz
Apply patches from Yair K. This enables network playback, and fixes the
build on Solaris, perhaps others as well. Bump PKGREVISION.
Diffstat (limited to 'audio/timidity/patches/patch-timidity_midi_a__c.c')
-rw-r--r--audio/timidity/patches/patch-timidity_midi_a__c.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/audio/timidity/patches/patch-timidity_midi_a__c.c b/audio/timidity/patches/patch-timidity_midi_a__c.c
new file mode 100644
index 00000000000..3e1e5e310b2
--- /dev/null
+++ b/audio/timidity/patches/patch-timidity_midi_a__c.c
@@ -0,0 +1,22 @@
+$NetBSD: patch-timidity_midi_a__c.c,v 1.1 2012/07/24 19:47:44 jperkin Exp $
+
+Some MIDI definitions are missing on some platform's soundcard.h, so just use
+internal definitions everywhere.
+
+--- timidity/midi_a.c.orig 2012-07-24 00:44:02.879194950 +0300
++++ timidity/midi_a.c 2012-07-24 00:44:21.200309747 +0300
+@@ -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