$OpenBSD: patch-Lib_sound_cc,v 1.1.1.1 2001/01/02 12:04:18 reinhard Exp $ --- Lib/sound.cc.orig Wed Sep 1 15:10:03 1999 +++ Lib/sound.cc Mon Jan 1 18:44:57 2001 @@ -26,8 +26,12 @@ #include #include #ifndef NOSOUND +#ifdef __OpenBSD__ +#include +#else #include #endif +#endif #ifdef RCSID static char *rcsid = "$Id: patch-Lib_sound_cc,v 1.1.1.1 2001/01/02 12:04:18 reinhard Exp $"; @@ -162,7 +166,7 @@ SoundMixer::SoundMixer(char *device) } // Reset device - status = ioctl(dsp, SNDCTL_DSP_RESET); + status = ioctl(dsp, SNDCTL_DSP_RESET, NULL); if (status < 0) perror("ioctl SNDCTL_DSP_RESET"); // Set sample size @@ -324,7 +328,7 @@ SoundMixer::playSounds() if (nbBytes) { // At last ! Play It ! write(dsp,buffer,nbBytes); - status = ioctl(dsp, SNDCTL_DSP_POST); + status = ioctl(dsp, SNDCTL_DSP_POST, NULL); } return nbBytes;