aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2006-01-27 20:44:10 +0000
committerEli Zaretskii2006-01-27 20:44:10 +0000
commit8f7f8c65392093aa5e7482ccc8bc298831fc4c37 (patch)
treea19972d8806209d82c0fb71e19c4c47faaa38bfd /src
parent967a91b21d9a27126d6c3b045dccf574d2b38f80 (diff)
downloademacs-8f7f8c65392093aa5e7482ccc8bc298831fc4c37.tar.gz
emacs-8f7f8c65392093aa5e7482ccc8bc298831fc4c37.zip
(DIRENTRY_NONEMPTY) [__CYGWIN__]: Use the MSDOS definition.
Diffstat (limited to 'src')
-rw-r--r--src/dired.c3
1 files changed, 2 insertions, 1 deletions
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 ();
85#endif /* not MSDOS */ 85#endif /* not MSDOS */
86#endif /* not SYSV_SYSTEM_DIR */ 86#endif /* not SYSV_SYSTEM_DIR */
87 87
88#ifdef MSDOS 88/* Some versions of Cygwin don't have d_ino in `struct dirent'. */
89#if defined(MSDOS) || defined(__CYGWIN__)
89#define DIRENTRY_NONEMPTY(p) ((p)->d_name[0] != 0) 90#define DIRENTRY_NONEMPTY(p) ((p)->d_name[0] != 0)
90#else 91#else
91#define DIRENTRY_NONEMPTY(p) ((p)->d_ino) 92#define DIRENTRY_NONEMPTY(p) ((p)->d_ino)