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
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-#include <values.h>
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__FreeBSD__)
#include <pthread.h>
#include <signal.h>
#else
{
float neg;
float shallow, steep;
- float max = MAXSHORT;
+ float max = SHRT_MAX;
neg = (sample < 0 ? -1 : 1);
steep = drc*sample;