[asterisk-commits] mjordan: branch 1.8 r412480 - /branches/1.8/channels/chan_oss.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Apr 17 15:23:11 CDT 2014
Author: mjordan
Date: Thu Apr 17 15:23:01 2014
New Revision: 412480
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=412480
Log:
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)
Modified:
branches/1.8/channels/chan_oss.c
Modified: branches/1.8/channels/chan_oss.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/channels/chan_oss.c?view=diff&rev=412480&r1=412479&r2=412480
==============================================================================
--- branches/1.8/channels/chan_oss.c (original)
+++ branches/1.8/channels/chan_oss.c Thu Apr 17 15:23:01 2014
@@ -48,7 +48,7 @@
#ifdef __linux
#include <linux/soundcard.h>
-#elif defined(__FreeBSD__) || defined(__CYGWIN__)
+#elif defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__GLIBC__) || defined(__sun)
#include <sys/soundcard.h>
#else
#include <soundcard.h>
More information about the asterisk-commits
mailing list