pkgsrc/emulators/stella/patches/patch-aa

29 lines
710 B
Text

$NetBSD: patch-aa,v 1.2 2000/01/22 23:44:31 tron Exp $
--- ../ui/sound/OSS.c.orig Tue May 18 10:19:45 1999
+++ ../ui/sound/OSS.c Tue May 18 10:24:03 1999
@@ -32,11 +32,7 @@
#include <sys/types.h>
#include <unistd.h>
-#ifdef __FreeBSD__
- #include <machine/soundcard.h>
-#else
- #include <sys/soundcard.h>
-#endif
+#include <soundcard.h>
#include "TIASound.h"
@@ -61,9 +57,9 @@
int mute = 0;
/* Open the sound device for writing */
- if((fd = open("/dev/dsp", O_WRONLY, 0)) == -1)
+ if((fd = open("/dev/sound", O_WRONLY, 0)) == -1)
{
- printf("stella-sound: Unable to open /dev/dsp device!\n");
+ printf("stella-sound: Unable to open /dev/sound device!\n");
return 1;
}