summaryrefslogtreecommitdiff
path: root/games/xscavenger/patches/patch-aa
blob: 514c184c0a929fb6d0ee34d5d6c1e37b18f3c427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$NetBSD: patch-aa,v 1.1.1.1 2000/01/08 18:26:00 wiz Exp $

diff -r -u -b sound.c.orig sound.c
--- sound.c.orig	Thu Jan  6 07:23:56 2000
+++ sound.c	Sat Jan  8 17:09:02 2000
@@ -5,7 +5,13 @@
 #include <unistd.h>
 #include <fcntl.h>
 #include <sys/ioctl.h>
+#ifdef __NetBSD__
+#include <soundcard.h>
+#define SOUNDDEV "/dev/sound"
+#else
 #include <linux/soundcard.h>
+#define SOUNDDEV "/dev/dsp"
+#endif
 #include <sys/time.h>
 #include <signal.h>
 #include <string.h>
@@ -14,7 +20,6 @@
 #include "scav.h"
 #include "sound.h"
 
-#define SOUNDDEV "/dev/dsp"
 
 char dirlist[512];