#include <stdio.h>
-#include <ac/string.h>
+#include <ac/stdlib.h>
+
#include <ac/ctype.h>
#include <ac/socket.h>
+#include <ac/string.h>
#include <ac/unistd.h>
#include <ac/wait.h>
+#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
+#endif
#include "lber.h"
#include "ldap.h"
int
main( int argc, char **argv )
{
- int i, j;
+ int i;
char *host = "localhost";
int port = -1;
char *sbase = NULL;