4 * Copyright 1998-2000 The OpenLDAP Foundation, Redwood City, California, USA
7 * Redistribution and use in source and binary forms are permitted only
8 * as authorized by the OpenLDAP Public License. A copy of this
9 * license is available at http://www.OpenLDAP.org/license.html or
10 * in file LICENSE in the top-level directory of the distribution.
17 # include <sys/types.h>
28 /* note: callers of crypt(3) should include <ac/crypt.h> */
30 #if defined(HAVE_GETPASSPHRASE)
31 LDAP_LIBC_F(char*)(getpassphrase)();
33 #elif defined(HAVE_GETPASS)
34 #define getpassphrase(p) getpass(p)
35 LDAP_LIBC_F(char*)(getpass)();
38 #define NEED_GETPASSPHRASE 1
39 #define getpassphrase(p) lutil_getpass(p)
40 LDAP_LUTIL_F(char*)(lutil_getpass) LDAP_P((const char *getpass));
43 /* getopt() defines may be in separate include file */
47 #elif !defined(HAVE_GETOPT)
48 /* no getopt, assume we need getopt-compat.h */
49 # include <getopt-compat.h>
52 /* assume we need to declare these externs */
53 LDAP_LIBC_F (char *) optarg;
54 LDAP_LIBC_F (int) optind, opterr, optopt;
58 LDAP_LUTIL_F(char *)(tempnam) LDAP_P((
63 /* use lutil file locking */
64 #define ldap_lockf(x) lutil_lockf(x)
65 #define ldap_unlockf(x) lutil_unlockf(x)
66 #include <lutil_lockf.h>
68 #endif /* _AC_UNISTD_H */