(DIRENTRY_NONEMPTY) [__CYGWIN__]: Use the MSDOS definition.
[bpt/emacs.git] / src / dired.c
index 35a6978..474683c 100644 (file)
@@ -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)