summaryrefslogtreecommitdiff
path: root/audio/kdemultimedia2/patches/patch-aj
diff options
context:
space:
mode:
Diffstat (limited to 'audio/kdemultimedia2/patches/patch-aj')
-rw-r--r--audio/kdemultimedia2/patches/patch-aj31
1 files changed, 31 insertions, 0 deletions
diff --git a/audio/kdemultimedia2/patches/patch-aj b/audio/kdemultimedia2/patches/patch-aj
new file mode 100644
index 00000000000..01b38e1065d
--- /dev/null
+++ b/audio/kdemultimedia2/patches/patch-aj
@@ -0,0 +1,31 @@
+$NetBSD: patch-aj,v 1.1.1.1 2001/03/14 16:14:05 skrll Exp $
+
+--- mpeglib/lib/util/audio/audioIO_Linux.cpp.orig Thu Jul 27 16:24:55 2000
++++ mpeglib/lib/util/audio/audioIO_Linux.cpp
+@@ -40,7 +40,7 @@
+ #include <sys/soundcard.h>
+ #else
+ // fallback:
+-#include <linux/soundcard.h>
++#include <soundcard.h> /* NetBSD has <soundcard.h> */
+
+ #endif
+ #endif
+@@ -48,7 +48,7 @@
+
+ /* optimal fragment size */
+
+-int AUSIZ = 0;
++int ausiz = 0;
+
+ // declare these static to effectively isolate the audio device
+
+@@ -132,7 +132,7 @@
+ exit(0);
+ }
+
+- if (ioctl(audio_fd, SNDCTL_DSP_GETBLKSIZE, &AUSIZ) == -1) {
++ if (ioctl(audio_fd, SNDCTL_DSP_GETBLKSIZE, &ausiz) == -1) {
+ perror("Unable to get fragment size\n");
+ exit(0);
+ }