$NetBSD: patch-ac,v 1.1.1.1 2002/03/25 11:24:29 drochner Exp $ --- audio_oss.c.orig Sat Dec 9 12:12:15 2000 +++ audio_oss.c Sat Mar 23 21:32:08 2002 @@ -13,7 +13,11 @@ #include #include #ifndef __FreeBSD__ +#ifdef __NetBSD__ +#include +#else #include +#endif #else #include #define SNDCTL_DSP_CHANNELS SNDCTL_DSP_STEREO @@ -42,12 +46,12 @@ if (driver->descriptor==-1) { - driver->descriptor=open("/dev/dsp",O_WRONLY); + driver->descriptor=open("/dev/sound",O_WRONLY); if (driver->descriptor!=-1) { int format_mask=0; - ioctl(driver->descriptor,SNDCTL_DSP_RESET); + ioctl(driver->descriptor,SNDCTL_DSP_RESET, 0); ioctl(driver->descriptor,SNDCTL_DSP_SPEED,&speed); ioctl(driver->descriptor,SNDCTL_DSP_CHANNELS,&channels); ioctl(driver->descriptor,SNDCTL_DSP_GETFMTS,&format_mask);