aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/dired.c4
-rw-r--r--src/fileio.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/dired.c b/src/dired.c
index 493758292b9..b8197d36a02 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -41,6 +41,10 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
41#include "buffer.h" 41#include "buffer.h"
42#include "coding.h" 42#include "coding.h"
43 43
44#ifdef __CYGWIN__
45# undef O_PATH /* Buggy in Cygwin 3.0.0 through 3.0.7. */
46#endif
47
44#ifdef MSDOS 48#ifdef MSDOS
45#include "msdos.h" /* for fstatat */ 49#include "msdos.h" /* for fstatat */
46#endif 50#endif
diff --git a/src/fileio.c b/src/fileio.c
index ed1d2aedf37..e36118652cb 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -61,6 +61,10 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
61# include <linux/fs.h> 61# include <linux/fs.h>
62#endif 62#endif
63 63
64#ifdef __CYGWIN__
65# undef O_PATH /* Buggy in Cygwin 3.0.0 through 3.0.7. */
66#endif
67
64#ifdef WINDOWSNT 68#ifdef WINDOWSNT
65#define NOMINMAX 1 69#define NOMINMAX 1
66#include <windows.h> 70#include <windows.h>