summaryrefslogtreecommitdiff
path: root/audio/libsamplerate/patches/patch-examples_audio_out.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/libsamplerate/patches/patch-examples_audio_out.c')
-rw-r--r--audio/libsamplerate/patches/patch-examples_audio_out.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/audio/libsamplerate/patches/patch-examples_audio_out.c b/audio/libsamplerate/patches/patch-examples_audio_out.c
new file mode 100644
index 00000000000..7e8b8a20f85
--- /dev/null
+++ b/audio/libsamplerate/patches/patch-examples_audio_out.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-examples_audio_out.c,v 1.1 2012/07/04 08:59:23 adam Exp $
+
+Fix building on Mac OS X.
+
+--- examples/audio_out.c.orig 2012-06-22 20:14:44.000000000 +0000
++++ examples/audio_out.c
+@@ -168,7 +168,6 @@ linux_close (AUDIO_OUT *audio_out)
+
+ #if (defined (__MACH__) && defined (__APPLE__)) /* MacOSX */
+
+-#include <Carbon.h>
+ #include <CoreAudio/AudioHardware.h>
+
+ #define MACOSX_MAGIC MAKE_MAGIC ('M', 'a', 'c', ' ', 'O', 'S', ' ', 'X')