Use float.h to fix the build on FreeBSD. Also, add some other platforms as
authorRussell Bryant <russell@russellbryant.com>
Mon, 31 Dec 2007 22:41:39 +0000 (22:41 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 31 Dec 2007 22:41:39 +0000 (22:41 +0000)
they are likely the same.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95550 65c4cc65-6c06-0410-ace0-fbb531ad65f3

codecs/codec_resample.c

index 88af225..ce0d60a 100644 (file)
@@ -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>