aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2019-06-27 13:05:05 -0700
committerPaul Eggert2019-06-27 13:05:39 -0700
commit4f2b2559ab32ff98e04eb3251d983b6ecf02700a (patch)
tree1932d57b98d67b162caad8a0b7616ba3403aef49
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.
-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>