diff options
Diffstat (limited to 'audio/tcl-snack/patches')
-rw-r--r-- | audio/tcl-snack/patches/patch-ad | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/audio/tcl-snack/patches/patch-ad b/audio/tcl-snack/patches/patch-ad new file mode 100644 index 00000000000..aa7459ee8ae --- /dev/null +++ b/audio/tcl-snack/patches/patch-ad @@ -0,0 +1,33 @@ +$NetBSD: patch-ad,v 1.1 2002/08/27 04:36:20 gson Exp $ + +--- jkAudIO_oss.c.orig Wed Jul 17 04:03:15 2002 ++++ jkAudIO_oss.c +@@ -35,7 +35,11 @@ + #include <ctype.h> + #include <stdlib.h> + #include <glob.h> ++#ifdef __NetBSD__ ++#define DEVICE_NAME "/dev/sound" ++#else + #define DEVICE_NAME "/dev/dsp" ++#endif + #define MIXER_NAME "/dev/mixer" + static char *defaultDeviceName = DEVICE_NAME; + extern void Snack_WriteLog(char *s); +@@ -971,11 +975,15 @@ + { + int i, j = 0; + glob_t globt; +- ++ ++#ifdef __NetBSD__ ++ glob("/dev/sound*", 0, NULL, &globt); ++#else + glob("/dev/dsp*", 0, NULL, &globt); + glob("/dev/audio*", GLOB_APPEND, NULL, &globt); + glob("/dev/sound/dsp*", GLOB_APPEND, NULL, &globt); + glob("/dev/sound/audio*", GLOB_APPEND, NULL, &globt); ++#endif + + for (i = 0; i < globt.gl_pathc; i++) { + if (j < n) { |