]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
channels/chan_oss: Fix compilation problem on SmartOS/Illumos/SunOS
authorMatthew Jordan <mjordan@digium.com>
Thu, 17 Apr 2014 20:23:01 +0000 (20:23 +0000)
committerMatthew Jordan <mjordan@digium.com>
Thu, 17 Apr 2014 20:23:01 +0000 (20:23 +0000)
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

index efe6c42cf5a5b9e36daaf37bc3235938c9ada44c..e88b356e5f5869a51f9ea79a87cf5f61326df671 100644 (file)
@@ -48,7 +48,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 
 #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>