diff src/dired.c @ 109585:4504e82595bb

Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf * configure.in: Check for dirent.h * dired.c, sysdep.c: test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h, s/msdos.h, s/usg5-4.h: don't define SYSV_SYSTEM_DIR * sed2v2.inp (HAVE_DIRENT_H): Edit to 1
author Jan D <jan.h.d@swipnet.se>
date Thu, 29 Jul 2010 22:01:08 +0200
parents 228a5fa4eda0
children c4c8e4a16194
line wrap: on
line diff
--- a/src/dired.c	Thu Jul 29 11:34:39 2010 -0700
+++ b/src/dired.c	Thu Jul 29 22:01:08 2010 +0200
@@ -48,29 +48,22 @@
    Since applying strlen to the name always works, we'll just do that.  */
 #define NAMLEN(p) strlen (p->d_name)
 
-#ifdef SYSV_SYSTEM_DIR
+#ifdef HAVE_DIRENT_H
 
 #include <dirent.h>
 #define DIRENTRY struct dirent
 
-#else /* not SYSV_SYSTEM_DIR */
+#else /* not HAVE_DIRENT_H */
 
-#ifdef MSDOS
-#include <dirent.h>
-#else
 #include <sys/dir.h>
-#endif
-
 #include <sys/stat.h>
 
-#ifndef MSDOS
 #define DIRENTRY struct direct
 
 extern DIR *opendir (char *);
 extern struct direct *readdir (DIR *);
 
-#endif /* not MSDOS */
-#endif /* not SYSV_SYSTEM_DIR */
+#endif /* HAVE_DIRENT_H */
 
 /* Some versions of Cygwin don't have d_ino in `struct dirent'.  */
 #if defined(MSDOS) || defined(__CYGWIN__)