mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-13 11:21:06 +00:00
Fix build of OSS driver if soundcard.h is not in sys/
This commit is contained in:
parent
ab15b32656
commit
7ea9e21081
3 changed files with 11 additions and 4 deletions
|
@ -45,7 +45,4 @@ ENDIF(NOT WIN32)
|
|||
MARK_AS_ADVANCED (
|
||||
OSS_FOUND
|
||||
OSS_INCLUDE_DIR
|
||||
LINUX_OSS_INCLUDE_DIR
|
||||
SYS_OSS_INCLUDE_DIR
|
||||
MACHINE_OSS_INCLUDE_DIR
|
||||
)
|
||||
)
|
||||
|
|
|
@ -52,6 +52,9 @@
|
|||
/* Define to 1 if you have the <limits.h> header file. */
|
||||
#cmakedefine HAVE_LIMITS_H @HAVE_LIMITS_H@
|
||||
|
||||
/* Define to 1 if you have the <linux/soundcard.h> header file. */
|
||||
#cmakedefine HAVE_LINUX_SOUNDCARD_H @HAVE_LINUX_SOUNDCARD_H@
|
||||
|
||||
/* Define to 1 if you have the <machine/soundcard.h> header file. */
|
||||
#cmakedefine HAVE_MACHINE_SOUNDCARD_H @HAVE_MACHINE_SOUNDCARD_H@
|
||||
|
||||
|
|
|
@ -32,7 +32,14 @@
|
|||
|
||||
#if OSS_SUPPORT
|
||||
|
||||
#if defined(HAVE_SYS_SOUNDCARD_H)
|
||||
#include <sys/soundcard.h>
|
||||
#elif defined(HAVE_LINUX_SOUNDCARD_H)
|
||||
#include <linux/soundcard.h>
|
||||
#else
|
||||
#include <machine/soundcard.h>
|
||||
#endif
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/types.h>
|
||||
|
|
Loading…
Reference in a new issue