1999-05-01 03:25:12 +00:00
|
|
|
Index: libaudio/audio.h
|
|
|
|
@@ -17,13 +17,15 @@
|
|
|
|
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
-#ifdef LINUX
|
|
|
|
+#if defined(LINUX) || defined(__FreeBSD__)
|
|
|
|
|
|
|
|
#ifndef _audio_h
|
|
|
|
#define _audio_h
|
1998-09-16 12:54:00 +00:00
|
|
|
|
|
|
|
#include <stdio.h>
|
1999-05-01 03:25:12 +00:00
|
|
|
+#ifndef __FreeBSD__
|
1998-09-16 12:54:00 +00:00
|
|
|
#include <malloc.h>
|
|
|
|
+#endif
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
#include <limits.h>
|
1999-05-01 03:25:12 +00:00
|
|
|
@@ -31,7 +33,11 @@
|
1998-09-16 12:54:00 +00:00
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <sys/ioctl.h>
|
|
|
|
+#ifdef __FreeBSD__
|
|
|
|
+#include <machine/soundcard.h>
|
|
|
|
+#else
|
|
|
|
#include <sys/soundcard.h>
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|