aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dired.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/dired.c b/src/dired.c
index b8197d36a02..b700013f6a8 100644
--- a/src/dired.c
+++ b/src/dired.c
@@ -41,10 +41,6 @@ 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
48#ifdef MSDOS 44#ifdef MSDOS
49#include "msdos.h" /* for fstatat */ 45#include "msdos.h" /* for fstatat */
50#endif 46#endif
@@ -941,7 +937,7 @@ file_attributes (int fd, char const *name,
941 937
942 int err = EINVAL; 938 int err = EINVAL;
943 939
944#ifdef O_PATH 940#if defined O_PATH && !defined HAVE_CYGWIN_O_PATH_BUG
945 int namefd = openat (fd, name, O_PATH | O_CLOEXEC | O_NOFOLLOW); 941 int namefd = openat (fd, name, O_PATH | O_CLOEXEC | O_NOFOLLOW);
946 if (namefd < 0) 942 if (namefd < 0)
947 err = errno; 943 err = errno;