aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-15 19:46:57 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-15 19:46:57 +0000
commit6f7cb5d2e8fddcd324374e0de6f3c89b4d005482 (patch)
treea4571e3a1776437a30b66696778eb88958104168 /include
parent56f4cd372557815f7af0c7e0d9beb646547f1542 (diff)
Define LLONG_MAX on systems that do not have it.
(closes issue #17644) Reported by: pprindeville git-svn-id: http://svn.digium.com/svn/asterisk/trunk@276769 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/autoconfig.h.in3
-rw-r--r--include/asterisk/compat.h4
2 files changed, 7 insertions, 0 deletions
diff --git a/include/asterisk/autoconfig.h.in b/include/asterisk/autoconfig.h.in
index 7ebd290cf..1e2e11416 100644
--- a/include/asterisk/autoconfig.h.in
+++ b/include/asterisk/autoconfig.h.in
@@ -369,6 +369,9 @@
/* Define to 1 if your system has linux/compiler.h. */
#undef HAVE_LINUX_COMPILER_H
+/* Define to 1 if limits.h includes a LLONG_MAX definition. */
+#undef HAVE_LLONG_MAX
+
/* Define to 1 if you have the <locale.h> header file. */
#undef HAVE_LOCALE_H
diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h
index c1f9632e7..22daeaef9 100644
--- a/include/asterisk/compat.h
+++ b/include/asterisk/compat.h
@@ -73,6 +73,10 @@
#include "asterisk/poll-compat.h"
#endif
+#ifndef HAVE_LLONG_MAX
+#define LLONG_MAX 9223372036854775807LL
+#endif
+
#ifndef HAVE_CLOSEFROM
void closefrom(int lowfd);
#endif