openbsd-ports/audio/wmmixer/patches/patch-mixctl_h
naddy ff0c13ae86 - C++ fix for compiling with gcc3.
- Use CXX for linking rather than CC.
2002-09-27 22:51:58 +00:00

23 lines
747 B
Plaintext

$OpenBSD: patch-mixctl_h,v 1.3 2002/09/27 22:51:58 naddy Exp $
--- mixctl.h.orig Sat Sep 5 17:11:33 1998
+++ mixctl.h Sat Sep 28 00:52:09 2002
@@ -21,6 +21,9 @@
#ifdef __FreeBSD__
#include <machine/soundcard.h>
#endif
+#ifdef __OpenBSD__
+#include <soundcard.h>
+#endif
#ifdef __linux__
#include <linux/soundcard.h>
#endif
@@ -31,7 +34,7 @@ public:
MixCtl(char *dname){
device=(char *)malloc(sizeof(char)*(strlen(dname)+1));
strcpy(device,dname);
- if(mixfdopen=(mixfd=open(device,O_RDONLY | O_NONBLOCK))!=-1){
+ if(mixfdopen=(mixfd=open(device,O_RDWR | O_NONBLOCK))!=-1){
nrdevices=SOUND_MIXER_NRDEVICES;
char *devnames[]=SOUND_DEVICE_NAMES;
char *devlabels[]=SOUND_DEVICE_LABELS;