Change the includes to work on FreeBSD
authorJason Parker <jparker@digium.com>
Mon, 18 Sep 2006 22:35:40 +0000 (22:35 +0000)
committerJason Parker <jparker@digium.com>
Mon, 18 Sep 2006 22:35:40 +0000 (22:35 +0000)
Linux has sys/soundcard.h, which does a #include <linux/soundcard.h>

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43240 65c4cc65-6c06-0410-ace0-fbb531ad65f3

utils/Makefile
utils/muted.c

index 5eae26d..9d3f543 100644 (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),)
index 63be3c7..879bea5 100644 (file)
  *
  */
 
-#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>