4 * Copyright 1998,1999 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>
24 /* crypt() may be defined in a separate include file */
28 extern char *(crypt)();
32 LDAP_F(char*)(getpass) LDAP_P((const char *getpass));
34 LDAP_F(char*)(getpass)();
37 /* getopt() defines may be in separate include file */
41 #elif !defined(HAVE_GETOPT)
42 /* no getopt, assume we need getopt-compat.h */
43 # include <getopt-compat.h>
46 /* assume we need to declare these externs */
48 extern int optind, opterr, optopt;
52 LDAP_F(char *)(tempnam) LDAP_P((
57 LDAP_F(char *)(mktemp) LDAP_P((char *));
60 /* use lutil file locking */
61 #define ldap_lockf(x) lutil_lockf(x)
62 #define ldap_unlockf(x) lutil_unlockf(x)
63 #include <lutil_lockf.h>
65 #endif /* _AC_UNISTD_H */