From eca819d8665073629e19d034db6f578bbdd16dae Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 9 Apr 2005 06:41:39 +0000 Subject: [PATCH] ITS#3643 limits.h, INT_MAX --- libraries/libldap/cyrus.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.39.5