1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-07 08:00:48 -08:00

Work around Cygwin bug with O_PATH

Problem reported by Ken Brown (Bug#36405).
* src/dired.c, src/fileio.c (O_PATH) [__CYGWIN__]: Undef.
This commit is contained in:
Paul Eggert 2019-06-27 13:05:05 -07:00
parent 06d2eb33e1
commit 4f2b2559ab
2 changed files with 8 additions and 0 deletions

View 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

View 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>