--- src/KXLsound.c.orig Fri Jan 17 01:29:09 2003 +++ src/KXLsound.c Wed Oct 5 12:13:08 2005 @@ -3,7 +3,6 @@ #include #include #include -#include #include "KXL.h" #define MIN(a, b) (((a) < (b)) ? (a) : (b)) @@ -45,6 +44,7 @@ //============================================================== void KXL_SoundServer(void) { +#ifndef __FreeBSD__ Uint16 i; KXL_SoundControl Command; fd_set sound_fdset; @@ -163,6 +163,7 @@ } } } +#endif } //============================================================== @@ -239,6 +240,7 @@ //============================================================== void KXL_InitSound(Uint8 *path, Uint8 **fname) { +#ifndef __FreeBSD__ KXL_SoundOk = False; KXL_LoadSoundData(path, fname); @@ -266,6 +268,7 @@ close(KXL_SoundData.Pipe[0]); KXL_SoundOk = True; } +#endif } //============================================================== @@ -273,6 +276,7 @@ //============================================================== void KXL_EndSound(void) { +#ifndef __FreeBSD__ while (KXL_SoundData.ListCnt) KXL_Free(KXL_wavelist[-- KXL_SoundData.ListCnt].Data); KXL_Free(KXL_wavelist); @@ -282,5 +286,6 @@ KXL_PlaySound(0, KXL_SOUND_STOP_ALL); kill(KXL_SoundData.ID, SIGTERM); } +#endif }