diff options
Diffstat (limited to 'sys/oss/gstosssrc.c')
-rw-r--r-- | sys/oss/gstosssrc.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/oss/gstosssrc.c b/sys/oss/gstosssrc.c index b0db3279..4ad6a63e 100644 --- a/sys/oss/gstosssrc.c +++ b/sys/oss/gstosssrc.c @@ -23,12 +23,26 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif + #include <sys/ioctl.h> #include <fcntl.h> #include <errno.h> #include <unistd.h> #include <string.h> -#include <sys/soundcard.h> + +#ifdef HAVE_OSS_INCLUDE_IN_SYS +# include <sys/soundcard.h> +#else +# ifdef HAVE_OSS_INCLUDE_IN_ROOT +# include <soundcard.h> +# else +# ifdef HAVE_OSS_INCLUDE_IN_MACHINE +# include <machine/soundcard.h> +# else +# error "What to include?" +# endif /* HAVE_OSS_INCLUDE_IN_MACHINE */ +# endif /* HAVE_OSS_INCLUDE_IN_ROOT */ +#endif /* HAVE_OSS_INCLUDE_IN_SYS */ #include "gstosssrc.h" |