$OpenBSD: patch-Lib_sound_cc,v 1.2 2010/05/23 16:20:47 espie Exp $
--- Lib/sound.cc.orig	Wed Sep  1 17:10:03 1999
+++ Lib/sound.cc	Sat May 22 16:02:37 2010
@@ -26,8 +26,12 @@
 #include <fcntl.h>
 #include <sys/ioctl.h>
 #ifndef NOSOUND
+#ifdef __OpenBSD__
+#include <soundcard.h>
+#else
 #include <linux/soundcard.h>
 #endif
+#endif
 
 #ifdef RCSID
 static char *rcsid = "$Id: patch-Lib_sound_cc,v 1.2 2010/05/23 16:20:47 espie 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;
