$NetBSD: patch-aa,v 1.1.1.1 2008/10/23 08:07:09 wulf Exp $ --- src/soundcard/sound.cxx.orig 2008-04-10 22:29:17.000000000 +0930 +++ src/soundcard/sound.cxx 2008-04-10 22:31:43.000000000 +0930 @@ -467,9 +467,11 @@ bool SoundOSS::wait_till_finished() { - if (ioctl(device_fd, SNDCTL_DSP_POST, 1) == -1 ) + int arg = 1; + if (ioctl(device_fd, SNDCTL_DSP_POST, &arg) == -1 ) return false; - if (ioctl(device_fd, SNDCTL_DSP_SYNC, 0) == -1) + arg = 0; + if (ioctl(device_fd, SNDCTL_DSP_SYNC, &arg) == -1) return false; /* format (or ioctl()) not supported by device */ return true; /* all sound has been played */ }