X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=m4%2Funistd_h.m4;h=31d31c1e93b607f89c34b0dc0f72b5fd13646c29;hb=cbd5934b1918d73022d1d1d9904112f3d6d7f187;hp=aacec2b15b207c7e282b6fa3ec3259009d96be8e;hpb=b4349b948ba2c352187158e241334abda6e473e9;p=pspp diff --git a/m4/unistd_h.m4 b/m4/unistd_h.m4 index aacec2b15b..31d31c1e93 100644 --- a/m4/unistd_h.m4 +++ b/m4/unistd_h.m4 @@ -1,4 +1,4 @@ -# unistd_h.m4 serial 38 +# unistd_h.m4 serial 39 dnl Copyright (C) 2006-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -26,11 +26,20 @@ AC_DEFUN([gl_UNISTD_H], dnl Check for declarations of anything we want to poison if the dnl corresponding gnulib module is not in use. gl_WARN_ON_USE_PREPARE([[#include -/* Some systems declare environ in the wrong header. */ +/* Some systems declare various items in the wrong headers. */ #ifndef __GLIBC__ +# include +# include # include +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ +# include +# endif #endif - ]], [environ]) + ]], [chown dup2 dup3 environ euidaccess faccessat fchdir fchownat + fsync ftruncate getcwd getdomainname getdtablesize getgroups + gethostname getlogin getlogin_r getpagesize getusershell setusershell + endusershell lchown link linkat lseek pipe2 pread readlink readlinkat + rmdir sleep symlink symlinkat unlink unlinkat usleep]) ]) AC_DEFUN([gl_UNISTD_MODULE_INDICATOR],