From: Paul Eggert Date: Thu, 27 Jun 2019 20:05:05 +0000 (-0700) Subject: Work around Cygwin bug with O_PATH X-Git-Tag: emacs-27.0.90~2176 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4f2b2559ab32ff98e04eb3251d983b6ecf02700a;p=emacs.git Work around Cygwin bug with O_PATH Problem reported by Ken Brown (Bug#36405). * src/dired.c, src/fileio.c (O_PATH) [__CYGWIN__]: Undef. --- 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 . */ #include "buffer.h" #include "coding.h" +#ifdef __CYGWIN__ +# undef O_PATH /* Buggy in Cygwin 3.0.0 through 3.0.7. */ +#endif + #ifdef MSDOS #include "msdos.h" /* for fstatat */ #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 . */ # include #endif +#ifdef __CYGWIN__ +# undef O_PATH /* Buggy in Cygwin 3.0.0 through 3.0.7. */ +#endif + #ifdef WINDOWSNT #define NOMINMAX 1 #include