dect
/
asterisk
Archived
13
0
Fork 0

Change the includes to work on FreeBSD

Linux has sys/soundcard.h, which does a #include <linux/soundcard.h>


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43240 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
qwell 2006-09-18 22:35:40 +00:00
parent 4f02a921dc
commit d4544fc830
2 changed files with 4 additions and 3 deletions

View File

@ -17,6 +17,7 @@ UTILS:=astman smsq stereorize streamplayer aelparse muted
ifeq (${OSARCH},SunOS)
LIBS+=-lsocket -lnsl
UTILS:=$(filter-out muted,$(UTILS))
endif
ifeq ($(POPT_LIB),)

View File

@ -35,10 +35,10 @@
*
*/
#ifndef __Darwin__
#include <linux/soundcard.h>
#else
#ifdef __Darwin__
#include <CoreAudio/AudioHardware.h>
#elif defined(__linux__) || defined(__FreeBSD__)
#include <sys/soundcard.h>
#endif
#include <stdio.h>
#include <errno.h>