#include <stdio.h>
#include <stdlib.h>
-#include <pwd.h>
#include <ac/string.h>
+#include <ac/unistd.h>
+
+#include <pwd.h>
#include <lber.h>
#include <ldap.h>
{
int c, errflg;
struct ldop op;
- extern int optind;
- extern char *optarg;
if (( progname = strrchr( argv[ 0 ], '/' )) == NULL ) {
progname = estrdup( argv[ 0 ] );