--- lib/sound.cc.orig	Sat Oct 16 03:16:19 2004
+++ lib/sound.cc	Sat Oct 23 17:44:05 2004
@@ -20,7 +20,7 @@
 //  Author : Olivier Debon  <odebon@club-internet.fr>
 //
 
-#if ! defined(__linux__)
+#if ! defined(__linux__) && ! defined(__FreeBSD__)
 #warning no sound support for your OS in lib/sound.cc
 #define NOSOUND
 #endif
@@ -33,6 +33,11 @@
 #ifndef NOSOUND
 #ifdef __linux__
 #include <linux/soundcard.h>
+#else
+#ifdef __FreeBSD__
+#include <sys/param.h>
+#include <sys/soundcard.h>
+#endif
 #endif
 #endif
 
