]> git.sur5r.net Git - openldap/blobdiff - clients/tools/ldapsearch.c
update ldap/lber headers towards ldapext-ldap-c-api-01
[openldap] / clients / tools / ldapsearch.c
index 97ad7568b8ca243c5a2be174b5e8f41084f3263c..314af0e3ec8bbc0ac6c40092cec80ea76f954ad7 100644 (file)
@@ -1,17 +1,21 @@
 #include "portable.h"
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <ctype.h>
 
-#include <ac/socket.h>
 #include <ac/string.h>
-#include <ac/time.h>
 #include <ac/unistd.h>
 
 #include <lber.h>
 #include <ldap.h>
 #include <ldif.h>
 
+#if LDAP_VERSION == LDAP_VERSION2
+/* until we implement ldap_set_options() */
+#include "../libraries/libldap/ldap-int.h"
+#endif
+
 #include "ldapconfig.h"
 
 #define DEFSEP         "="