$NetBSD: patch-ad,v 1.4 2003/12/04 03:22:49 ben 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
   };
   
