]> git.sur5r.net Git - openldap/commitdiff
ITS#3643 limits.h, INT_MAX
authorHoward Chu <hyc@openldap.org>
Sat, 9 Apr 2005 06:41:39 +0000 (06:41 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 9 Apr 2005 06:41:39 +0000 (06:41 +0000)
libraries/libldap/cyrus.c

index ef686fae643a806122422e432b264a1581a6f2ae..15abb211fc00626166097562653bec78006662aa 100644 (file)
 
 #ifdef HAVE_CYRUS_SASL
 
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#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