summaryrefslogtreecommitdiff
path: root/games/xdoom/patches
diff options
context:
space:
mode:
authortron <tron>1999-12-29 21:47:03 +0000
committertron <tron>1999-12-29 21:47:03 +0000
commit0906797173912a721cb89081be685049feb88325 (patch)
treeaa18234af3c9c8f10e736adaf1773da7a127dd4d /games/xdoom/patches
parentf96fa7997e644958ccbad81b9ea0bf2b3427ed06 (diff)
downloadpkgsrc-0906797173912a721cb89081be685049feb88325.tar.gz
Use "/dev/sound" instead of "/dev/dsp" as sound device. Fixes PR pkg/9066
by Richard Rauch.
Diffstat (limited to 'games/xdoom/patches')
-rw-r--r--games/xdoom/patches/patch-ae26
1 files changed, 22 insertions, 4 deletions
diff --git a/games/xdoom/patches/patch-ae b/games/xdoom/patches/patch-ae
index a5452b7bc42..4759c3057ba 100644
--- a/games/xdoom/patches/patch-ae
+++ b/games/xdoom/patches/patch-ae
@@ -1,7 +1,8 @@
-$NetBSD: patch-ae,v 1.1 1998/09/06 16:37:45 hubertf Exp $
---- sndserv/linux.c.orig Sun Sep 6 18:02:05 1998
-+++ sndserv/linux.c Sun Sep 6 18:02:31 1998
-@@ -39,8 +39,9 @@
+$NetBSD: patch-ae,v 1.2 1999/12/29 21:47:04 tron Exp $
+
+--- sndserv/linux.c.orig Sun Jan 26 08:45:01 1997
++++ sndserv/linux.c Wed Dec 29 22:41:14 1999
+@@ -39,11 +39,14 @@
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
@@ -12,3 +13,20 @@ $NetBSD: patch-ae,v 1.1 1998/09/06 16:37:45 hubertf Exp $
#include "soundsrv.h"
++#define SOUND_DEV "/dev/sound"
++
+ int audio_fd;
+
+ void
+@@ -76,9 +79,9 @@
+
+ int i;
+
+- audio_fd = open("/dev/dsp", O_WRONLY);
++ audio_fd = open(SOUND_DEV, O_WRONLY);
+ if (audio_fd<0)
+- fprintf(stderr, "Could not open /dev/dsp\n");
++ fprintf(stderr, "Could not open "SOUND_DEV"\n");
+
+
+ i = 11 | (2<<16);