$NetBSD: patch-ac,v 1.1.1.1 2000/10/15 18:04:20 rh Exp $ --- xbreaky.snd.c.orig Thu May 11 10:13:45 2000 +++ xbreaky.snd.c @@ -28,11 +28,19 @@ #include #include #include +#ifdef __NetBSD__ +#include +#else #include +#endif #include #define DEFAULT_DSP_SPEED 8000 +#ifdef __NetBSD__ +#define AUDIO "/dev/audio" +#else #define AUDIO "/dev/dsp" +#endif #define RAWFILESDIR PREFIX"/share/games/xbreaky" int timelimit = 0, dsp_speed = DEFAULT_DSP_SPEED, dsp_stereo = 0; @@ -53,7 +61,6 @@ char k; signal(SIGTERM, quit); - fcntl(STDIN_FILENO,F_SETFL,O_NONBLOCK); audio = open (AUDIO, O_WRONLY, 0); if (audio == -1) { @@ -101,7 +108,7 @@ } if(i!=-1) { - play(names[(int)k]); + play(names[(int)k & 1]); } }