From: Howard Chu Date: Sat, 9 Apr 2005 06:41:39 +0000 (+0000) Subject: ITS#3643 limits.h, INT_MAX X-Git-Tag: OPENLDAP_AC_BP~954 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=eca819d8665073629e19d034db6f578bbdd16dae;p=openldap ITS#3643 limits.h, INT_MAX --- diff --git a/libraries/libldap/cyrus.c b/libraries/libldap/cyrus.c index ef686fae64..15abb211fc 100644 --- a/libraries/libldap/cyrus.c +++ b/libraries/libldap/cyrus.c @@ -29,6 +29,14 @@ #ifdef HAVE_CYRUS_SASL +#ifdef HAVE_LIMITS_H +#include +#endif + +#ifndef INT_MAX +#define INT_MAX 2147483647 /* 32 bit signed max */ +#endif + #ifdef LDAP_R_COMPILE ldap_pvt_thread_mutex_t ldap_int_sasl_mutex; #endif