summaryrefslogtreecommitdiff
path: root/emulators/uae
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1999-06-19 15:30:56 +0000
committertron <tron@pkgsrc.org>1999-06-19 15:30:56 +0000
commit2ad074e0ab852d3b7ef2ac55d94bfd2235522f3b (patch)
tree528414da61db46be60b45fe8e3a2e7c57f7c5b62 /emulators/uae
parentc566a0ae72b784fdf5fd65199276578216b4668c (diff)
downloadpkgsrc-2ad074e0ab852d3b7ef2ac55d94bfd2235522f3b.tar.gz
Use "/dev/sound" instead of "/dev/dsp".
Diffstat (limited to 'emulators/uae')
-rw-r--r--emulators/uae/patches/patch-ab32
1 files changed, 32 insertions, 0 deletions
diff --git a/emulators/uae/patches/patch-ab b/emulators/uae/patches/patch-ab
new file mode 100644
index 00000000000..2165df3b80b
--- /dev/null
+++ b/emulators/uae/patches/patch-ab
@@ -0,0 +1,32 @@
+$NetBSD: patch-ab,v 1.1 1999/06/19 15:30:56 tron Exp $
+
+--- src/sd-uss/sound.c.orig Wed Jul 15 11:41:13 1998
++++ src/sd-uss/sound.c Sat Jun 19 17:20:15 1999
+@@ -51,12 +51,12 @@
+ /* Try to determine whether sound is available. This is only for GUI purposes. */
+ int setup_sound (void)
+ {
+- sound_fd = open ("/dev/dsp", O_WRONLY);
++ sound_fd = open ("/dev/sound", O_WRONLY);
+
+ sound_available = 0;
+
+ if (sound_fd < 0) {
+- perror ("Can't open /dev/dsp");
++ perror ("Can't open /dev/sound");
+ if (errno == EBUSY) {
+ /* We can hope, can't we ;) */
+ sound_available = 1;
+@@ -82,10 +82,10 @@
+ int rate;
+ int dspbits;
+
+- sound_fd = open ("/dev/dsp", O_WRONLY);
++ sound_fd = open ("/dev/sound", O_WRONLY);
+ have_sound = !(sound_fd < 0);
+ if (! have_sound) {
+- perror ("Can't open /dev/dsp");
++ perror ("Can't open /dev/sound");
+ if (errno != EBUSY)
+ sound_available = 0;
+ return 0;