$NetBSD: patch-ab,v 1.4 2006/01/15 19:32:44 joerg Exp $ --- SndUnix.c.orig 2001-03-07 19:15:16.000000000 +0000 +++ SndUnix.c @@ -31,7 +31,9 @@ #include #include +#ifndef __NetBSD__ #include +#endif #define AUDIO_CONV(A) (ULAW[0xFF&(128+(A))]) @@ -73,15 +75,11 @@ static unsigned char ULAW[256] = #else /* SUN_AUDIO */ -#ifdef __FreeBSD__ -#include -#endif - #ifdef __NetBSD__ #include #endif -#ifdef __linux__ +#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__linux__) #include #endif @@ -236,7 +234,7 @@ static void SoundSignal(int SIG) case SIGUSR1: /* Suspend execution, until SIGUSR2 catched */ #ifndef SUN_AUDIO - ioctl(SoundFD,SNDCTL_DSP_RESET); + ioctl(SoundFD,SNDCTL_DSP_RESET,1); #endif close(SoundFD); for(Suspended=1;Suspended;pause());