]> git.sur5r.net Git - openldap/blob - include/ac/unistd.h
Remove recently added externs. Some may not actually be bogus.
[openldap] / include / ac / unistd.h
1 /* Generic unistd.h */
2
3 #ifndef _AC_UNISTD_H
4 #define _AC_UNISTD_H
5
6 #if HAVE_SYS_TYPES_H
7 #       include <sys/types.h>
8 #endif
9
10 #if HAVE_UNISTD_H
11 #       include <unistd.h>
12 #endif
13
14 /* crypt() may be defined in a separate include file */
15 #if HAVE_CRYPT_H
16 #       include <crypt.h>
17 #endif
18
19 /* getopt() defines may be in separate include file */
20 #if HAVE_GETOPT_H
21 #       include <getopt.h>
22
23 #elif !defined(HAVE_GETOPT)
24         /* no getopt, assume we need getopt-compat.h */
25 #       include <getopt-compat.h>
26
27 #else
28         /* assume we need to declare these externs */
29         extern char *optarg;
30         extern int optind, opterr, optopt;
31 #endif
32
33 #ifndef HAVE_TEMPNAM
34         extern char *tempnam(const char *tmpdir, const char *prefix);
35 #endif
36 #ifndef HAVE_MKTEMP
37         extern char *mktemp(char *);
38 #endif
39
40 /* use _POSIX_VERSION for POSIX.1 code */
41
42 #endif /* _AC_UNISTD_H */