aboutsummaryrefslogtreecommitdiffstats
path: root/audio/dap/files/patch-ab
blob: 1652219de1989d8fc79fd3ef43332a2f0594028f (plain) (blame)
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
--- libaudio/audio.h.orig   Fri Nov 12 11:35:21 1999
+++ libaudio/audio.h    Sat Dec 11 13:36:15 1999
@@ -17,13 +17,15 @@
 |
 ****************************************************************************/
 
-#ifdef LINUX
+#if defined(LINUX) || defined(__FreeBSD__)
 
 #ifndef _audio_h
 #define _audio_h
 
 #include <stdio.h>
+#ifndef __FreeBSD__
 #include <malloc.h>
+#endif
 #include <unistd.h>
 #include <fcntl.h>
 #include <limits.h>
@@ -33,6 +35,8 @@
 #include <sys/ioctl.h>
 #ifdef __NetBSD__
 #include <soundcard.h>
+#elif defined(__FreeBSD__)
+#include <machine/soundcard.h>
 #else
 #include <sys/soundcard.h>
 #endif