]> git.eshelyaron.com Git - emacs.git/commitdiff
Work around Cygwin bug with O_PATH
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 27 Jun 2019 20:05:05 +0000 (13:05 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 27 Jun 2019 20:05:39 +0000 (13:05 -0700)
Problem reported by Ken Brown (Bug#36405).
* src/dired.c, src/fileio.c (O_PATH) [__CYGWIN__]: Undef.

src/dired.c
src/fileio.c

index 493758292b96466ba5fcc6537cc2b1de2eb27c60..b8197d36a0264dfc096e27ed42c7418cfa3e6925 100644 (file)
@@ -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
index ed1d2aedf3799e4240c26d656ae5ff504a432043..e36118652cbd03d523098f7192960c443a484da5 100644 (file)
@@ -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>