oss: Remove use of the soundcard.h header, OpenBSD no longer uses OSS
This commit is contained in:
parent
a41414e0e0
commit
e0df0b6d74
@ -4,7 +4,7 @@ if enable_oss.disabled()
|
||||
elif enable_oss.auto() and alsa_dep.found()
|
||||
# don't bother auto-enabling OSS if ALSA is available
|
||||
enable_oss = false
|
||||
elif compiler.has_header('sys/soundcard.h') or compiler.has_header('soundcard.h')
|
||||
elif compiler.has_header('sys/soundcard.h')
|
||||
enable_oss = true
|
||||
elif enable_oss.auto()
|
||||
enable_oss = false
|
||||
|
@ -35,11 +35,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if defined(__OpenBSD__) || defined(__NetBSD__)
|
||||
# include <soundcard.h>
|
||||
#else /* !(defined(__OpenBSD__) || defined(__NetBSD__) */
|
||||
# include <sys/soundcard.h>
|
||||
#endif /* !(defined(__OpenBSD__) || defined(__NetBSD__) */
|
||||
#include <sys/soundcard.h>
|
||||
|
||||
#define VOLUME_MIXER_OSS_DEFAULT "/dev/mixer"
|
||||
|
||||
|
@ -39,11 +39,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#if defined(__OpenBSD__) || defined(__NetBSD__)
|
||||
# include <soundcard.h>
|
||||
#else /* !(defined(__OpenBSD__) || defined(__NetBSD__) */
|
||||
# include <sys/soundcard.h>
|
||||
#endif /* !(defined(__OpenBSD__) || defined(__NetBSD__) */
|
||||
#include <sys/soundcard.h>
|
||||
|
||||
/* We got bug reports from FreeBSD users who said that the two 24 bit
|
||||
formats generate white noise on FreeBSD, but 32 bit works. This is
|
||||
|
Loading…
Reference in New Issue
Block a user