Commit f72adc12 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(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.
parent 38404229
2000-09-01 Eli Zaretskii <eliz@is.elta.co.il>
* movemail.c (toplevel): Remove redundant fcnt.h.
[!F_OK]: Provide default definitions only after including both
fcntl.h and unistd.h.
2000-08-29 Eli Zaretskii <eliz@is.elta.co.il>
* Makefile.in (profile, make-docfile, hexl): Depend on config.h.
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment