From 6c70e2fd8b478631a860cc62a730ceeb8b7bf740 Mon Sep 17 00:00:00 2001
From: Michael Jerris <mike@jerris.com>
Date: Sat, 3 Oct 2009 00:56:46 +0000
Subject: [PATCH] fix solaris build

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15059 d0543943-73ff-0310-b7d9-9358b9ac24b2
---
 libs/spandsp/src/at_interpreter.c       | 2 +-
 libs/spandsp/src/make_modem_filter.c    | 2 +-
 libs/spandsp/src/spandsp/fast_convert.h | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libs/spandsp/src/at_interpreter.c b/libs/spandsp/src/at_interpreter.c
index 7da04d2e67..5d488a2685 100644
--- a/libs/spandsp/src/at_interpreter.c
+++ b/libs/spandsp/src/at_interpreter.c
@@ -76,7 +76,7 @@ enum
 static at_profile_t profiles[3] =
 {
     {
-#if defined(_MSC_VER)  ||  defined(__sunos)  ||  defined(__solaris)
+#if defined(_MSC_VER)  ||  defined(__sunos)  ||  defined(__solaris) || defined(__sun)
         /*.echo =*/ TRUE,
         /*.verbose =*/ TRUE,
         /*.result_code_format =*/ ASCII_RESULT_CODES,
diff --git a/libs/spandsp/src/make_modem_filter.c b/libs/spandsp/src/make_modem_filter.c
index 7621878a3c..ce659b30c3 100644
--- a/libs/spandsp/src/make_modem_filter.c
+++ b/libs/spandsp/src/make_modem_filter.c
@@ -44,7 +44,7 @@
 #include <stdio.h>
 #include <time.h>
 #include <fcntl.h>
-#if defined(__sunos)  ||  defined(__solaris)
+#if defined(__sunos)  ||  defined(__solaris) || defined(__sun)
 #include <getopt.h>
 #endif
 
diff --git a/libs/spandsp/src/spandsp/fast_convert.h b/libs/spandsp/src/spandsp/fast_convert.h
index b6520c5724..1620042c2a 100644
--- a/libs/spandsp/src/spandsp/fast_convert.h
+++ b/libs/spandsp/src/spandsp/fast_convert.h
@@ -150,7 +150,7 @@ extern "C"
         );
         return retval;
     }
-#elif defined(__GNUC__)
+#elif defined(__GNUC__)  || (__SUNPRO_C >= 0x0590)
 
 #if defined(__i386__)
     /* These routines are guaranteed fast on an i386 machine. Using the built in