From: Eli Zaretskii Date: Fri, 27 Jan 2006 20:44:10 +0000 (+0000) Subject: (DIRENTRY_NONEMPTY) [__CYGWIN__]: Use the MSDOS definition. X-Git-Tag: emacs-pretest-22.0.90~4544 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8f7f8c65392093aa5e7482ccc8bc298831fc4c37;p=emacs.git (DIRENTRY_NONEMPTY) [__CYGWIN__]: Use the MSDOS definition. --- 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)