Skip to content
Snippets Groups Projects
Commit 5609b27b authored by deuce's avatar deuce
Browse files

Look for soundcard.h in /usr/include/sys, /usr/include/linux, and /usr/include

parent c9f06a23
Branches
Tags
No related merge requests found
...@@ -7,6 +7,7 @@ endif ...@@ -7,6 +7,7 @@ endif
MTOBJS += $(MTOBJODIR)$(DIRSEP)xpevent$(OFILE) MTOBJS += $(MTOBJODIR)$(DIRSEP)xpevent$(OFILE)
MT_CFLAGS += -DLINK_LIST_THREADSAFE MT_CFLAGS += -DLINK_LIST_THREADSAFE
CFLAGS += -DSOUNDCARD_H_IN=$(shell if [ -e /usr/include/sys/soundcard.h ] ; then echo SYS ; elif [ -e /usr/include/soundcard.h ] ; then echo INCLUDE ; elif [ -e /usr/include/linux/soundcard.h ] ; then echo LINUX ; else echo NONE ; fi)
# Executable Build Rule # Executable Build Rule
$(WRAPTEST): $(OBJODIR)/wraptest.o $(DEPS) $(WRAPTEST): $(OBJODIR)/wraptest.o $(DEPS)
......
...@@ -6,8 +6,15 @@ ...@@ -6,8 +6,15 @@
#include <mmsystem.h> #include <mmsystem.h>
#elif defined(__unix__) #elif defined(__unix__)
#include <fcntl.h> #include <fcntl.h>
#include <soundcard.h> #if SOUNDCARD_H_IN==SYS
#include <sys/soundcard.h> #include <sys/soundcard.h>
#elif SOUNDCARD_H_IN==INCLUDE
#include <soundcard.h>
#elif SOUNDCARD_H_IN==LINUX
#include <linux/soundcard.h>
#else
#warning Cannot find soundcard.h
#endif
/* KIOCSOUND */ /* KIOCSOUND */
#if defined(__FreeBSD__) #if defined(__FreeBSD__)
#include <sys/kbio.h> #include <sys/kbio.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment