[asterisk-commits] russell: trunk r95550 - /trunk/codecs/codec_resample.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 31 16:41:40 CST 2007


Author: russell
Date: Mon Dec 31 16:41:39 2007
New Revision: 95550

URL: http://svn.digium.com/view/asterisk?view=rev&rev=95550
Log:
Use float.h to fix the build on FreeBSD.  Also, add some other platforms as
they are likely the same.

Modified:
    trunk/codecs/codec_resample.c

Modified: trunk/codecs/codec_resample.c
URL: http://svn.digium.com/view/asterisk/trunk/codecs/codec_resample.c?view=diff&rev=95550&r1=95549&r2=95550
==============================================================================
--- trunk/codecs/codec_resample.c (original)
+++ trunk/codecs/codec_resample.c Mon Dec 31 16:41:39 2007
@@ -29,7 +29,7 @@
 ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 
 /* These are for SHRT_MAX and FLT_MAX -- { */
-#ifdef __Darwin__
+#if defined(__Darwin__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) 
 #include <float.h>
 #else
 #include <values.h>




More information about the asterisk-commits mailing list