Mercurial > emacs
comparison lib-src/movemail.c @ 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 | b63fdc46cda2 |
children | f5cd669613d2 |
comparison
equal
deleted
inserted
replaced
31316:e14c9c3a1cc6 | 31317:d431eeb4028f |
---|---|
60 #include <sys/stat.h> | 60 #include <sys/stat.h> |
61 #include <sys/file.h> | 61 #include <sys/file.h> |
62 #include <stdio.h> | 62 #include <stdio.h> |
63 #include <errno.h> | 63 #include <errno.h> |
64 | 64 |
65 #include "syswait.h" | |
66 #include <getopt.h> | 65 #include <getopt.h> |
66 #ifdef HAVE_UNISTD_H | |
67 #include <unistd.h> | |
68 #endif | |
67 #ifdef HAVE_FCNTL_H | 69 #ifdef HAVE_FCNTL_H |
68 #include <fcntl.h> | 70 #include <fcntl.h> |
69 #endif | 71 #endif |
72 #include "syswait.h" | |
70 #ifdef MAIL_USE_POP | 73 #ifdef MAIL_USE_POP |
71 #include "pop.h" | 74 #include "pop.h" |
72 #endif | 75 #endif |
73 | 76 |
74 #ifdef MSDOS | 77 #ifdef MSDOS |
100 //#define DISABLE_DIRECT_ACCESS | 103 //#define DISABLE_DIRECT_ACCESS |
101 | 104 |
102 #include <fcntl.h> | 105 #include <fcntl.h> |
103 #endif /* WINDOWSNT */ | 106 #endif /* WINDOWSNT */ |
104 | 107 |
105 #ifdef HAVE_FCNTL_H | |
106 #include <fcntl.h> | |
107 #endif | |
108 #ifndef F_OK | 108 #ifndef F_OK |
109 #define F_OK 0 | 109 #define F_OK 0 |
110 #define X_OK 1 | 110 #define X_OK 1 |
111 #define W_OK 2 | 111 #define W_OK 2 |
112 #define R_OK 4 | 112 #define R_OK 4 |
113 #endif | |
114 | |
115 #ifdef HAVE_UNISTD_H | |
116 #include <unistd.h> | |
117 #endif | 113 #endif |
118 | 114 |
119 #if defined (XENIX) || defined (WINDOWSNT) | 115 #if defined (XENIX) || defined (WINDOWSNT) |
120 #include <sys/locking.h> | 116 #include <sys/locking.h> |
121 #endif | 117 #endif |