openldap/include/ac/unistd.h

54 lines
1.2 KiB
C
Raw Normal View History

1998-10-24 21:41:42 -04:00
/* Generic unistd.h */
1998-12-28 14:51:35 -05:00
/*
* Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted only
* as authorized by the OpenLDAP Public License. A copy of this
* license is available at http://www.OpenLDAP.org/license.html or
* in file LICENSE in the top-level directory of the distribution.
*/
1998-10-24 21:41:42 -04:00
#ifndef _AC_UNISTD_H
#define _AC_UNISTD_H
#if HAVE_SYS_TYPES_H
# include <sys/types.h>
1998-10-24 21:41:42 -04:00
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
/* crypt() may be defined in a separate include file */
#if HAVE_CRYPT_H
# include <crypt.h>
1998-11-23 03:14:40 -05:00
#else
extern char *crypt();
1998-10-24 21:41:42 -04:00
#endif
/* getopt() defines may be in separate include file */
#if HAVE_GETOPT_H
# include <getopt.h>
#elif !defined(HAVE_GETOPT)
/* no getopt, assume we need getopt-compat.h */
# include <getopt-compat.h>
#else
/* assume we need to declare these externs */
extern char *optarg;
extern int optind, opterr, optopt;
#endif
1998-10-24 21:41:42 -04:00
#ifndef HAVE_TEMPNAM
extern char *tempnam(const char *tmpdir, const char *prefix);
#endif
#ifndef HAVE_MKTEMP
extern char *mktemp(char *);
1998-10-24 21:41:42 -04:00
#endif
/* use _POSIX_VERSION for POSIX.1 code */
#endif /* _AC_UNISTD_H */