From c3497aa2bbfcf2e78d479a9d586b0320ba2b7cb0 Mon Sep 17 00:00:00 2001 From: Matthew Jordan Date: Thu, 17 Apr 2014 20:25:16 +0000 Subject: main/Makefile: Fix build failure on SmartOS/Illumos/SunOS This patch fixes two issues when building on SmartOS: - channels/chan_oss.c: it makes sure soundcard.h is found - main/Makefile: only use "-Wl,--version-script" when GNU LD is used as the Sun Linker doesn't support that. Similar checks are already used elswhere in the Makefile Review: https://reviewboard.asterisk.org/r/3426 ASTERISK-23576 #close Reported by: Sebastian Wiedenroth patches: fix-sunos.diff uploaded by Sebastian Wiedenroth (License 6597) ........ Merged revisions 412468 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 412483 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@412484 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_oss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'channels') diff --git a/channels/chan_oss.c b/channels/chan_oss.c index 7fc4f4052..4459b4b6f 100644 --- a/channels/chan_oss.c +++ b/channels/chan_oss.c @@ -53,7 +53,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #ifdef __linux #include -#elif defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__GLIBC__) +#elif defined(__FreeBSD__) || defined(__CYGWIN__) || defined(__GLIBC__) || defined(__sun) #include #else #include -- cgit v1.2.3