summaryrefslogtreecommitdiff
path: root/src/dired.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-06-27 13:05:05 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2019-06-27 13:05:39 -0700
commit4f2b2559ab32ff98e04eb3251d983b6ecf02700a (patch)
tree1932d57b98d67b162caad8a0b7616ba3403aef49 /src/dired.c
parent06d2eb33e1d189eee8d89cb5159f779e1600c4f2 (diff)
downloademacs-4f2b2559ab32ff98e04eb3251d983b6ecf02700a.tar.gz
Work around Cygwin bug with O_PATH
Problem reported by Ken Brown (Bug#36405). * src/dired.c, src/fileio.c (O_PATH) [__CYGWIN__]: Undef.
Diffstat (limited to 'src/dired.c')
-rw-r--r--src/dired.c4
1 files changed, 4 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/>. */
#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