diff --git a/include/ac/unistd.h b/include/ac/unistd.h index a52b288417..ac061fc775 100644 --- a/include/ac/unistd.h +++ b/include/ac/unistd.h @@ -4,18 +4,16 @@ #define _AC_UNISTD_H #if HAVE_SYS_TYPES_H -# include +# include #endif #if HAVE_UNISTD_H -# include -#else - /* we really should test for these */ - char *crypt(); - char *gethostname(); - char *getenv(); - long *random(); - int flock(); +# include +#endif + +/* crypt() may be defined in a separate include file */ +#if HAVE_CRYPT_H +# include #endif /* getopt() defines may be in separate include file */