$NetBSD: patch-ac,v 1.2 2006/01/12 21:03:20 joerg Exp $ --- sound.c.orig 2001-04-11 21:45:47.000000000 +0000 +++ sound.c @@ -104,11 +104,12 @@ #include #include #include +#include #include #include #if defined(__FreeBSD__) #include -#elif defined(__NetBSD__) || defined(__OpenBSD__) +#elif defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) #include #else /* Linux */ #include @@ -411,7 +412,7 @@ InitAudio(int argc, char **argv) { int desired_fragmentsize = 0; #ifdef SNDCTL_DSP_RESET - if (! ioctl (audiofd, SNDCTL_DSP_RESET)) { + if (! ioctl (audiofd, SNDCTL_DSP_RESET, 0)) { int desired_audiorate; int desired_audiostereo; struct SampleFormat *desired_sample_format = sample_format;