aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-03-20 11:33:30 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-03-20 11:33:30 +0000
commitbe1d1b35d7c43b16f953ca5c2a228a1191848e93 (patch)
treea408318907cb5b5ab43c1de32a02600a70b6fbdc /channels
parentd6542dcc768000863c929adf3482aa9399ba4a2b (diff)
Use SHRT_MAX instead of MAXSHORT.
These changes fix build issues I had with this module on FreeBSD. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@253536 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_dahdi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index 76d1794c5..4fe3db990 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -50,8 +50,7 @@
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <values.h>
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__FreeBSD__)
#include <pthread.h>
#include <signal.h>
#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;