Files
pkgsrc-ng/games/fkiss/patches/patch-ad
2013-09-26 17:14:40 +02:00

36 lines
787 B
Plaintext

$NetBSD: patch-ad,v 1.5 2005/12/05 20:50:16 rillig Exp $
--- sound.c.orig 2001-11-11 23:05:37.000000000 -0800
+++ sound.c
@@ -57,6 +57,12 @@
# 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);
}
@@ -464,7 +470,7 @@ void decide_midi_player()
char *midilist[] = {
"/usr/bin/midiplay", "",
"/usr/bin/playmidi", "",
- "/usr/local/bin/timidity", "-idq",
+ "XXXPREFIXXXX/bin/timidity", "-idq",
NULL
};