blob: 1dde0072d9b5380fa4f66d8e2abea08e4c5670ed (
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
|
$NetBSD: patch-ad,v 1.2 2011/09/04 21:04:57 dholland Exp $
- Support more OSes
- use valid C
--- audio.c.orig 2001-08-02 11:06:48.000000000 +0000
+++ audio.c
@@ -5,8 +5,10 @@
*/
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__OpenBSD__)
#include <soundcard.h>
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
+#include <sys/soundcard.h>
#else
#include <linux/soundcard.h>
#endif
@@ -545,7 +547,7 @@ int play_it()
}
#if 0
-play_it()
+void play_it(void)
{
char c=0;
int i,j=0;
|