# HG changeset patch # User Eli Zaretskii # Date 967816080 0 # Node ID d431eeb4028f7b0c05f0e7b3671cdfdd557261f1 # Parent e14c9c3a1cc6c0afd76b274036fad49f0f27a358 (toplevel): Remove redundant . Provide definitions for F_OK and friends only after including both fcntl.h and unistd.h: some systems define them on unistd.h. diff -r e14c9c3a1cc6 -r d431eeb4028f lib-src/movemail.c --- 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 #include -#include "syswait.h" #include +#ifdef HAVE_UNISTD_H +#include +#endif #ifdef HAVE_FCNTL_H #include #endif +#include "syswait.h" #ifdef MAIL_USE_POP #include "pop.h" #endif @@ -102,9 +105,6 @@ #include #endif /* WINDOWSNT */ -#ifdef HAVE_FCNTL_H -#include -#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 -#endif - #if defined (XENIX) || defined (WINDOWSNT) #include #endif