diff options
Diffstat (limited to 'lib/gl/unistd.in.h')
-rw-r--r-- | lib/gl/unistd.in.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/gl/unistd.in.h b/lib/gl/unistd.in.h index 279f3347ed..132d0d3766 100644 --- a/lib/gl/unistd.in.h +++ b/lib/gl/unistd.in.h @@ -43,6 +43,11 @@ # include <sys/types.h> #endif +/* Get getopt(), optarg, optind, opterr, optopt. */ +#if @GNULIB_UNISTD_H_GETOPT@ +# include <getopt.h> +#endif + #if @GNULIB_GETHOSTNAME@ /* Get all possible declarations of gethostname(). */ # if @UNISTD_H_HAVE_WINSOCK2_H@ @@ -137,7 +142,7 @@ extern int chown (const char *file, uid_t uid, gid_t gid); # define close rpl_close extern int close (int); # endif -#elif @UNISTD_H_HAVE_WINSOCK2_H@ +#elif @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@ # undef close # define close close_used_without_requesting_gnulib_module_close #elif defined GNULIB_POSIXCHECK |