--- src/KXLsound.c.orig Wed Feb 20 21:42:17 2002 +++ src/KXLsound.c Wed Feb 20 21:44:49 2002 @@ -3,7 +3,9 @@ #include #include #include +#ifndef __FreeBSD__ #include +#endif #include "KXL.h" #define MIN(a, b) (((a) < (b)) ? (a) : (b)) @@ -45,6 +47,7 @@ //============================================================== void KXL_SoundServer(void) { +#ifndef __FreeBSD__ Uint16 i; KXL_SoundControl Command; fd_set sound_fdset; @@ -163,6 +166,7 @@ } } } +#endif } //============================================================== @@ -238,6 +242,7 @@ //============================================================== void KXL_InitSound(Uint8 *path, Uint8 **fname) { +#ifndef __FreeBSD__ KXL_SoundOk = False; KXL_LoadSoundData(path, fname); @@ -265,6 +270,7 @@ close(KXL_SoundData.Pipe[0]); KXL_SoundOk = True; } +#endif } //============================================================== @@ -272,6 +278,7 @@ //============================================================== void KXL_EndSound(void) { +#ifndef __FreeBSD__ while (KXL_SoundData.ListCnt) KXL_Free(KXL_wavelist[-- KXL_SoundData.ListCnt].Data); KXL_Free(KXL_wavelist); @@ -281,5 +288,6 @@ KXL_PlaySound(0, KXL_SOUND_STOP_ALL); kill(KXL_SoundData.ID, SIGTERM); } +#endif }