$NetBSD: patch-ab,v 1.6 2018/04/09 16:19:12 ryoon Exp $ --- EMULib/Unix/SndUnix.c.orig 2018-03-24 08:47:36.000000000 +0000 +++ EMULib/Unix/SndUnix.c @@ -38,7 +38,9 @@ #include #include +#ifndef __NetBSD__ #include +#endif static const unsigned char ULAW[256] = { @@ -82,6 +84,10 @@ static const unsigned char ULAW[256] = #include #endif +#ifdef __DragonFly__ +#include +#endif + #ifdef __NetBSD__ #include #endif @@ -285,7 +291,7 @@ void TrashAudio(void) #elif defined(SUN_AUDIO) close(SoundFD); #else - ioctl(SoundFD,SNDCTL_DSP_RESET); + ioctl(SoundFD,SNDCTL_DSP_RESET, 1); close(SoundFD); #endif }