From 8f7f8c65392093aa5e7482ccc8bc298831fc4c37 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 27 Jan 2006 20:44:10 +0000 Subject: [PATCH] (DIRENTRY_NONEMPTY) [__CYGWIN__]: Use the MSDOS definition. --- src/dired.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dired.c b/src/dired.c index 35a69780a3b..474683c3c87 100644 --- a/src/dired.c +++ b/src/dired.c @@ -85,7 +85,8 @@ extern struct direct *readdir (); #endif /* not MSDOS */ #endif /* not SYSV_SYSTEM_DIR */ -#ifdef MSDOS +/* Some versions of Cygwin don't have d_ino in `struct dirent'. */ +#if defined(MSDOS) || defined(__CYGWIN__) #define DIRENTRY_NONEMPTY(p) ((p)->d_name[0] != 0) #else #define DIRENTRY_NONEMPTY(p) ((p)->d_ino) -- 2.39.2