$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 #include #include +#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) {