From: Russell Bryant Date: Sat, 20 Mar 2010 11:33:30 +0000 (+0000) Subject: Use SHRT_MAX instead of MAXSHORT. X-Git-Tag: 11.0.0-beta1~3260 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=24137871be89378b641daae192f20f2dca71117e;p=thirdparty%2Fasterisk.git Use SHRT_MAX instead of MAXSHORT. These changes fix build issues I had with this module on FreeBSD. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@253536 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 76d1794c52..4fe3db9901 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -50,8 +50,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") -#include -#ifdef __NetBSD__ +#if defined(__NetBSD__) || defined(__FreeBSD__) #include #include #else @@ -4203,7 +4202,7 @@ static int drc_sample(int sample, float drc) { float neg; float shallow, steep; - float max = MAXSHORT; + float max = SHRT_MAX; neg = (sample < 0 ? -1 : 1); steep = drc*sample;