summaryrefslogtreecommitdiff
path: root/games/fkiss/patches/patch-ad
blob: a41c1d3cb1c9f221d1ac31f30df5e9126ffa9824 (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-ad,v 1.3 2003/12/04 00:28:02 ben Exp $

--- sound.c.orig	2001-11-11 23:05:37.000000000 -0800
+++ sound.c
@@ -57,6 +57,12 @@ char id_sound[] = "$Id: sound.c,v 1.21 2
 # include <machine/soundcard.h>
 #endif
 
+#ifdef __NetBSD__
+# define USE_DSP
+# include <sys/ioctl.h>
+# include <soundcard.h>
+#endif
+
 #ifndef DEV_SOUND
 # define DEV_SOUND	"/dev/audio"
 #endif
@@ -235,7 +241,7 @@ void play_sync(fd)
 {
   if (sound_debug >= 2)
     fputs("sync", stderr);
-  ioctl(fd, SNDCTL_DSP_SYNC);
+  ioctl(fd, SNDCTL_DSP_SYNC, 0);
   if (sound_debug >= 2)
     fputs(" ", stderr);
 }