summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>2001-03-23 00:13:23 +0000
committermickey <mickey@openbsd.org>2001-03-23 00:13:23 +0000
commite17ed294d498612e713da45ffeb4575152b3caa0 (patch)
tree86c742702aa118659d0572c1399fff432e9f806f
parentRemove obsolete configs, add the one we (Applitron) use nowadays instead. (diff)
downloadwireguard-openbsd-e17ed294d498612e713da45ffeb4575152b3caa0.tar.xz
wireguard-openbsd-e17ed294d498612e713da45ffeb4575152b3caa0.zip
fix compiling in audio-less configs
-rw-r--r--sys/dev/midi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/midi.c b/sys/dev/midi.c
index b91c4904218..4506f8dd87e 100644
--- a/sys/dev/midi.c
+++ b/sys/dev/midi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: midi.c,v 1.5 2000/06/26 22:43:21 art Exp $ */
+/* $OpenBSD: midi.c,v 1.6 2001/03/23 00:13:23 mickey Exp $ */
/* $NetBSD: midi.c,v 1.10 1998/12/20 14:26:44 drochner Exp $ */
/*
@@ -38,6 +38,7 @@
*/
#include "midi.h"
+#include "audio.h"
#include "sequencer.h"
#include <sys/param.h>
@@ -743,7 +744,7 @@ midi_getinfo(dev, mi)
#endif /* NMIDI > 0 */
-#if NMIDI > 0 || NMIDIBUS > 0
+#if (NMIDI > 0 || NMIDIBUS > 0) && NAUDIO > 0
int midiprint __P((void *, const char *));