aboutsummaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
authorPaul Eggert2019-06-27 13:05:05 -0700
committerPaul Eggert2019-06-27 13:05:39 -0700
commit4f2b2559ab32ff98e04eb3251d983b6ecf02700a (patch)
tree1932d57b98d67b162caad8a0b7616ba3403aef49 /src/fileio.c
parent06d2eb33e1d189eee8d89cb5159f779e1600c4f2 (diff)
downloademacs-4f2b2559ab32ff98e04eb3251d983b6ecf02700a.tar.gz
emacs-4f2b2559ab32ff98e04eb3251d983b6ecf02700a.zip
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/fileio.c')
-rw-r--r--src/fileio.c4
1 files changed, 4 insertions, 0 deletions
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>