summaryrefslogtreecommitdiff
path: root/lib-src/movemail.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src/movemail.c')
-rw-r--r--lib-src/movemail.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib-src/movemail.c b/lib-src/movemail.c
index d37644063e1..cfe817c1119 100644
--- a/lib-src/movemail.c
+++ b/lib-src/movemail.c
@@ -62,11 +62,14 @@ Boston, MA 02111-1307, USA. */
#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 @@ Boston, MA 02111-1307, USA. */
#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 @@ Boston, MA 02111-1307, USA. */
#define R_OK 4
#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#if defined (XENIX) || defined (WINDOWSNT)
#include <sys/locking.h>
#endif