From 125f86e18b31dcf1885164b754bf23ffe3e3bc04 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 15 Apr 2008 23:16:16 +0000 Subject: Make the BSD PC speaker driver work on FreeBSD. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1113 --- pcsound/pcsound_bsd.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'pcsound/pcsound_bsd.c') diff --git a/pcsound/pcsound_bsd.c b/pcsound/pcsound_bsd.c index 68884e0e..6ba73037 100644 --- a/pcsound/pcsound_bsd.c +++ b/pcsound/pcsound_bsd.c @@ -26,14 +26,27 @@ #include "config.h" +// OpenBSD/NetBSD: + #ifdef HAVE_DEV_ISA_SPKRIO_H +#define HAVE_BSD_SPEAKER +#include +#endif + +// FreeBSD + +#ifdef HAVE_DEV_SPEAKER_SPEAKER_H +#define HAVE_BSD_SPEAKER +#include +#endif + +#ifdef HAVE_BSD_SPEAKER #include #include #include #include #include -#include #include #include #include @@ -310,5 +323,5 @@ pcsound_driver_t pcsound_bsd_driver = PCSound_BSD_Shutdown, }; -#endif /* #ifdef HAVE_DEV_ISA_SPKRIO_H */ +#endif /* #ifdef HAVE_BSD_SPEAKER */ -- cgit v1.2.3