aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/Makefile1
-rw-r--r--utils/muted.c6
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>