#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"
#endif /* LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS */
};
-
/*
* in init.c
*/
BerElement *ldap_build_search_req( LDAP *ld, char *base, int scope,
char *filter, char **attrs, int attrsonly );
+/*
+ * in strdup.c
+ */
+char *ldap_strdup LDAP_P(( const char * ));
/*
* in unbind.c
#endif /* LDAP_CHARSET_8859 == LDAP_DEFAULT_CHARSET */
#endif /* STR_TRANSLATION && LDAP_DEFAULT_CHARSET */
+/*
+ * in util_r.c
+ *
+ */
+
+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(
+ const char *name,
+ struct hostent *resbuf,
+ char **buf,
+ struct hostent **result,
+ int *herrno_ptr );
+extern int ldap_int_gethostbyaddr_a(
+ const char *addr,
+ int len,
+ int type,
+ struct hostent *resbuf,
+ char **buf,
+ struct hostent **result,
+ int *herrno_ptr );
+
LDAP_END_DECL
#endif /* _LDAP_INT_H */