$OpenBSD: patch-src_volume_c,v 1.2 2006/06/14 12:37:52 bernd Exp $
--- src/volume.c.orig	Tue Nov  2 05:03:22 2004
+++ src/volume.c	Tue Jun 13 17:26:31 2006
@@ -30,7 +30,7 @@
 #include <fcntl.h>
 #include <errno.h>
 #ifndef NO_OSS_MIXER
-#include <sys/soundcard.h>
+#include <soundcard.h>
 #endif
 #ifdef HAVE_ALSA
 #include <alsa/asoundlib.h>
@@ -67,7 +67,7 @@ int volume_alsaSet = -1;
 int prepOssMixer(char * device) {
 	int devmask = 0;
 
-	if((volume_ossFd = open(device,O_RDONLY))<0) {
+	if((volume_ossFd = open(device,O_RDWR))<0) {
 		WARNING("unable to open oss mixer \"%s\"\n",device);
 		return -1;
 	}
