From 03ed8d30ba43c4143e1cfed5036ef01f790b7fb2 Mon Sep 17 00:00:00 2001 From: Matthew Jordan Date: Thu, 17 Apr 2014 20:23:01 +0000 Subject: [PATCH] channels/chan_oss: Fix compilation problem on SmartOS/Illumos/SunOS THis patch fixes an issue in chan_oss when building on certain platforms. It ensures that soundcard.h is found. Review: https://reviewboard.asterisk.org/r/3426 Note that this patch is a part of the patch on ASTERISK-23576; the Makefile portion only applies to Asterisk 11+. (issue ASTERISK-23576) Reported by: Sebastian Wiedenroth patches: fix-sunos.diff uploaded by Sebastian Wiedenroth (License 6597) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@412480 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_oss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_oss.c b/channels/chan_oss.c index efe6c42cf5..e88b356e5f 100644 --- a/channels/chan_oss.c +++ b/channels/chan_oss.c @@ -48,7 +48,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #ifdef __linux #include -#elif defined(__FreeBSD__) || defined(__CYGWIN__) +#elif defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__GLIBC__) || defined(__sun) #include #else #include -- 2.47.3