From 9f8c08a717bc83e45def5959f34dd0f1649da7a6 Mon Sep 17 00:00:00 2001 From: Ken Brown Date: Tue, 27 Jul 2010 07:10:48 -0400 Subject: [PATCH] * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of the MSDOS definition. --- src/ChangeLog | 5 +++++ src/dired.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 6b9c8614837..78eb27f0814 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-07-27 Ken Brown + + * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of + the MSDOS definition. + 2010-07-25 Christoph Scholtes * minibuf.c (Fread_buffer): Doc fix (bug#6528). diff --git a/src/dired.c b/src/dired.c index d4b0ff20db2..92a768da5be 100644 --- a/src/dired.c +++ b/src/dired.c @@ -72,8 +72,7 @@ extern struct direct *readdir (); #endif /* not MSDOS */ #endif /* not SYSV_SYSTEM_DIR */ -/* Some versions of Cygwin don't have d_ino in `struct dirent'. */ -#if defined(MSDOS) || defined(__CYGWIN__) +#ifdef MSDOS #define DIRENTRY_NONEMPTY(p) ((p)->d_name[0] != 0) #else #define DIRENTRY_NONEMPTY(p) ((p)->d_ino) -- 2.39.2