]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/ldap-int.h
LDAP C-API changes
[openldap] / libraries / libldap / ldap-int.h
index 68c8c5b245dc77d1e9784afc2a46ec7b784a8344..7948578895fe4aa2562c13d5a3808b3c83332733 100644 (file)
@@ -8,11 +8,13 @@
 #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
 
@@ -280,6 +282,8 @@ int ldap_8859_to_t61( char **bufp, unsigned long *buflenp, int free_input );
  * 
  */
 
+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(