diff --git a/libraries/libldap/util-int.c b/libraries/libldap/util-int.c index ffd2214081..00faaca7d5 100644 --- a/libraries/libldap/util-int.c +++ b/libraries/libldap/util-int.c @@ -95,7 +95,9 @@ char *ldap_pvt_ctime( const time_t *tp, char *buf ) #define BUFSTART 1024 #define BUFMAX (32*1024) +#if defined( NEED_SAFE_REALLOC ) static char *safe_realloc( char **buf, int len ); +#endif #if !defined(HAVE_GETHOSTBYNAME_R) && defined(LDAP_R_COMPILE) static int copy_hostent( struct hostent *res, char **buf, struct hostent * src );