changeset 68427:57575786f53a

(DIRENTRY_NONEMPTY) [__CYGWIN__]: Use the MSDOS definition.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 27 Jan 2006 20:44:10 +0000
parents e7649e83dff6
children 4e4c1567e59c
files src/dired.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dired.c	Fri Jan 27 19:49:14 2006 +0000
+++ b/src/dired.c	Fri Jan 27 20:44:10 2006 +0000
@@ -85,7 +85,8 @@
 #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)