1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-17 00:00:40 +00:00
freebsd-ports/audio/dap/files/patch-ab

31 lines
577 B
Plaintext
Raw Normal View History

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"