#ifndef _LDAP_INT_H
#define _LDAP_INT_H 1
+#ifdef LDAP_COMPILING_R
+#define LDAP_THREAD_SAFE 1
+#endif
+
#include "../liblber/lber-int.h"
#include "ldap_log.h"
#include "ldap.h"
-#include <time.h>
-#include <netdb.h>
LDAP_BEGIN_DECL
*
*/
+struct hostent; /* avoid pulling in <netdb.h> */
+
extern char *ldap_int_strtok( char *str, const char *delim, char **pos );
extern char *ldap_int_ctime( const time_t *tp, char *buf );
extern int ldap_int_gethostbyname_a(