diff options
author | Heiko Schaefer <heikos@users.sourceforge.net> | 2002-05-02 10:24:10 +0000 |
---|---|---|
committer | Heiko Schaefer <heikos@users.sourceforge.net> | 2002-05-02 10:24:10 +0000 |
commit | 3cba56a05c08538dd06792dc61f1ec5a280e1198 (patch) | |
tree | aa867e4fc1467c80c8eb1821788b9db9aba72336 | |
parent | e45adba3ac1e78dd736ba896fb60f4f20e3db301 (diff) | |
download | xine-lib-3cba56a05c08538dd06792dc61f1ec5a280e1198.tar.gz xine-lib-3cba56a05c08538dd06792dc61f1ec5a280e1198.tar.bz2 |
only include machine/soundcard.h for FreeBSD versions below 4.x
CVS patchset: 1832
CVS date: 2002/05/02 10:24:10
-rw-r--r-- | src/audio_out/audio_oss_out.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/audio_out/audio_oss_out.c b/src/audio_out/audio_oss_out.c index 0e0eb3de5..25cbc22f4 100644 --- a/src/audio_out/audio_oss_out.c +++ b/src/audio_out/audio_oss_out.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_oss_out.c,v 1.62 2002/04/28 16:11:12 guenter Exp $ + * $Id: audio_oss_out.c,v 1.63 2002/05/02 10:24:10 heikos Exp $ * * 20-8-2001 First implementation of Audio sync and Audio driver separation. * Copyright (C) 2001 James Courtier-Dutton James@superbug.demon.co.uk @@ -47,14 +47,16 @@ #include <math.h> #include <unistd.h> #if defined(__OpenBSD__) -#include <soundcard.h> -#elif defined(__FreeBSD__) -#include <machine/soundcard.h> +# include <soundcard.h> +#elif defined (__FreeBSD__) +# if __FreeBSD__ < 4 +# include <machine/soundcard.h> +# endif #else -#if defined(__linux__) -#include <linux/config.h> /* Check for DEVFS */ -#endif -#include <sys/soundcard.h> +# if defined(__linux__) +# include <linux/config.h> /* Check for DEVFS */ +# endif +# include <sys/soundcard.h> #endif #include <sys/ioctl.h> #include <inttypes.h> |