mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
2aa59dc6ec
PR: 10939 Submitted by: Juergen Lock <nox@jelal.kn-bremen.de>
31 lines
577 B
Plaintext
31 lines
577 B
Plaintext
Index: libaudio/audio.h
|
|
@@ -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>
|
|
@@ -31,7 +33,11 @@
|
|
#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"
|