# HG changeset patch # User Jim Meyering # Date 1120297507 0 # Node ID ace6ea1914247c49b2a5ef0b6f5fd7544190a941 # Parent 2dcad1ee50535348a26887e2aeda6ba6acc2559d Assume HAVE_FCNTL_H (i.e., include unconditionally, and don't include ). diff --git a/lib/ChangeLog b/lib/ChangeLog --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,11 @@ +2005-07-01 Jim Meyering + + * chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c: + * getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c: + * save-cwd.c, tempname.c: + Assume HAVE_FCNTL_H (i.e., include unconditionally, + and don't include ). + 2005-07-01 Paul Eggert * xnanosleep.c: Include timespec.h, since OpenBSD 3.4 diff --git a/lib/chown.c b/lib/chown.c --- a/lib/chown.c +++ b/lib/chown.c @@ -30,11 +30,7 @@ #if HAVE_UNISTD_H # include #endif -#if HAVE_FCNTL_H -# include -#else -# include -#endif +#include #include /* Provide a more-closely POSIX-conforming version of chown on diff --git a/lib/cloexec.c b/lib/cloexec.c --- a/lib/cloexec.c +++ b/lib/cloexec.c @@ -27,9 +27,7 @@ # include #endif -#if HAVE_FCNTL_H -# include -#endif +#include #ifndef FD_CLOEXEC # define FD_CLOEXEC 1 diff --git a/lib/dup-safer.c b/lib/dup-safer.c --- a/lib/dup-safer.c +++ b/lib/dup-safer.c @@ -23,9 +23,7 @@ #include "unistd-safer.h" -#if HAVE_FCNTL_H -# include -#endif +#include #if HAVE_UNISTD_H # include diff --git a/lib/dup2.c b/lib/dup2.c --- a/lib/dup2.c +++ b/lib/dup2.c @@ -23,9 +23,7 @@ #include -#if HAVE_FCNTL_H -# include -#endif +#include #if HAVE_UNISTD_H # include diff --git a/lib/fsusage.c b/lib/fsusage.c --- a/lib/fsusage.c +++ b/lib/fsusage.c @@ -60,9 +60,7 @@ # include /* SVR2 */ #endif -#if HAVE_FCNTL_H -# include -#endif +#include #if HAVE_SYS_STATFS_H # include diff --git a/lib/getcwd.c b/lib/getcwd.c --- a/lib/getcwd.c +++ b/lib/getcwd.c @@ -30,9 +30,7 @@ #include #include -#if HAVE_FCNTL_H -# include /* For AT_FDCWD on Solaris 9. */ -#endif +#include /* For AT_FDCWD on Solaris 9. */ #ifndef __set_errno # define __set_errno(val) (errno = (val)) diff --git a/lib/getloadavg.c b/lib/getloadavg.c --- a/lib/getloadavg.c +++ b/lib/getloadavg.c @@ -447,11 +447,7 @@ # include # endif -# if defined (HAVE_FCNTL_H) || defined (_POSIX_VERSION) -# include -# else -# include -# endif +# include # include "unistd-safer.h" diff --git a/lib/mountlist.c b/lib/mountlist.c --- a/lib/mountlist.c +++ b/lib/mountlist.c @@ -35,9 +35,7 @@ #include -#ifdef HAVE_FCNTL_H -# include -#endif +#include #ifdef HAVE_UNISTD_H # include diff --git a/lib/openat.h b/lib/openat.h --- a/lib/openat.h +++ b/lib/openat.h @@ -17,9 +17,7 @@ /* written by Jim Meyering */ -#if HAVE_FCNTL_H -# include -#endif +#include #include #include diff --git a/lib/pagealign_alloc.c b/lib/pagealign_alloc.c --- a/lib/pagealign_alloc.c +++ b/lib/pagealign_alloc.c @@ -28,9 +28,7 @@ #include #include -#if HAVE_FCNTL_H -# include -#endif +#include #if HAVE_UNISTD_H # include diff --git a/lib/save-cwd.c b/lib/save-cwd.c --- a/lib/save-cwd.c +++ b/lib/save-cwd.c @@ -33,11 +33,7 @@ # include #endif -#if HAVE_FCNTL_H -# include -#else -# include -#endif +#include #include diff --git a/lib/tempname.c b/lib/tempname.c --- a/lib/tempname.c +++ b/lib/tempname.c @@ -47,9 +47,7 @@ #include #include -#if HAVE_FCNTL_H || _LIBC -# include -#endif +#include #if HAVE_SYS_TIME_H || _LIBC # include