diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-18 22:35:40 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-18 22:35:40 +0000 |
commit | d4544fc8306f0cf0c207fc1d9b474e1d4fd4441c (patch) | |
tree | a2d24e1216f63b1859ffdd35fb27bbc017a6f8b7 /utils | |
parent | 4f02a921dc3c35443d27460b7574a635796870fa (diff) |
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
Diffstat (limited to 'utils')
-rw-r--r-- | utils/Makefile | 1 | ||||
-rw-r--r-- | utils/muted.c | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/utils/Makefile b/utils/Makefile index 5eae26d1e..9d3f5434c 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -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),) diff --git a/utils/muted.c b/utils/muted.c index 63be3c703..879bea583 100644 --- a/utils/muted.c +++ b/utils/muted.c @@ -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> |