emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 4f2b255: Work around Cygwin bug with O_PATH


From: Paul Eggert
Subject: [Emacs-diffs] master 4f2b255: Work around Cygwin bug with O_PATH
Date: Thu, 27 Jun 2019 16:05:43 -0400 (EDT)

branch: master
commit 4f2b2559ab32ff98e04eb3251d983b6ecf02700a
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    Work around Cygwin bug with O_PATH
    
    Problem reported by Ken Brown (Bug#36405).
    * src/dired.c, src/fileio.c (O_PATH) [__CYGWIN__]: Undef.
---
 src/dired.c  | 4 ++++
 src/fileio.c | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/src/dired.c b/src/dired.c
index 4937582..b8197d3 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
diff --git a/src/fileio.c b/src/fileio.c
index ed1d2ae..e361186 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/>.  */
 # include <linux/fs.h>
 #endif
 
+#ifdef __CYGWIN__
+# undef O_PATH /* Buggy in Cygwin 3.0.0 through 3.0.7.  */
+#endif
+
 #ifdef WINDOWSNT
 #define NOMINMAX 1
 #include <windows.h>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]