Mercurial > emacs
changeset 31317:d431eeb4028f
(toplevel): Remove redundant <fcntl.h>. Provide definitions for F_OK
and friends only after including both fcntl.h and unistd.h: some
systems define them on unistd.h.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Fri, 01 Sep 2000 13:48:00 +0000 |
parents | e14c9c3a1cc6 |
children | 29ea4dc8a310 |
files | lib-src/movemail.c |
diffstat | 1 files changed, 4 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/movemail.c Fri Sep 01 11:55:39 2000 +0000 +++ b/lib-src/movemail.c Fri Sep 01 13:48:00 2000 +0000 @@ -62,11 +62,14 @@ #include <stdio.h> #include <errno.h> -#include "syswait.h" #include <getopt.h> +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif #ifdef HAVE_FCNTL_H #include <fcntl.h> #endif +#include "syswait.h" #ifdef MAIL_USE_POP #include "pop.h" #endif @@ -102,9 +105,6 @@ #include <fcntl.h> #endif /* WINDOWSNT */ -#ifdef HAVE_FCNTL_H -#include <fcntl.h> -#endif #ifndef F_OK #define F_OK 0 #define X_OK 1 @@ -112,10 +112,6 @@ #define R_OK 4 #endif -#ifdef HAVE_UNISTD_H -#include <unistd.h> -#endif - #if defined (XENIX) || defined (WINDOWSNT) #include <sys/locking.h> #endif