[asterisk-commits] tilghman: trunk r276769 - in /trunk: ./ include/asterisk/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jul 15 14:47:03 CDT 2010
Author: tilghman
Date: Thu Jul 15 14:46:57 2010
New Revision: 276769
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=276769
Log:
Define LLONG_MAX on systems that do not have it.
(closes issue #17644)
Reported by: pprindeville
Modified:
trunk/configure
trunk/configure.ac
trunk/include/asterisk/autoconfig.h.in
trunk/include/asterisk/compat.h
Modified: trunk/configure.ac
URL: http://svnview.digium.com/svn/asterisk/trunk/configure.ac?view=diff&rev=276769&r1=276768&r2=276769
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Thu Jul 15 14:46:57 2010
@@ -462,6 +462,15 @@
AC_CHECK_FUNCS([exp2l log2l exp10l log10l sinl cosl tanl asinl acosl atanl atan2l powl sqrtl rintl expl logl remainderl fmodl roundl truncl floorl ceill])
fi
+AC_MSG_CHECKING(for LLONG_MAX in limits.h)
+AC_LINK_IFELSE(
+ AC_LANG_PROGRAM([#include <limits.h>],
+ [long long foo = LLONG_MAX]),
+ AC_MSG_RESULT(yes)
+ AC_DEFINE([HAVE_LLONG_MAX], 1, [Define to 1 if limits.h includes a LLONG_MAX definition.]),
+ AC_MSG_RESULT(no)
+)
+
AC_MSG_CHECKING(for timersub in time.h)
AC_LINK_IFELSE(
AC_LANG_PROGRAM([#include <sys/time.h>],
Modified: trunk/include/asterisk/autoconfig.h.in
URL: http://svnview.digium.com/svn/asterisk/trunk/include/asterisk/autoconfig.h.in?view=diff&rev=276769&r1=276768&r2=276769
==============================================================================
--- trunk/include/asterisk/autoconfig.h.in (original)
+++ trunk/include/asterisk/autoconfig.h.in Thu Jul 15 14:46:57 2010
@@ -368,6 +368,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
Modified: trunk/include/asterisk/compat.h
URL: http://svnview.digium.com/svn/asterisk/trunk/include/asterisk/compat.h?view=diff&rev=276769&r1=276768&r2=276769
==============================================================================
--- trunk/include/asterisk/compat.h (original)
+++ trunk/include/asterisk/compat.h Thu Jul 15 14:46:57 2010
@@ -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
More information about the asterisk-commits
mailing list