Use `#if D_TYPE_IN_DIRENT && defined DTTOIF' to
authorJim Meyering <jim@meyering.net>
Thu, 24 May 2001 20:06:21 +0000 (20:06 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 24 May 2001 20:06:21 +0000 (20:06 +0000)
determine whether to enable the DT_INIT definition, not the less
portable `#if defined _DIRENT_HAVE_D_TYPE || defined DTTOIF'.
Reported by Eli Zaretskii.

src/ls.c

index cacd71b..5f7131c 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -188,7 +188,7 @@ int rpl_lstat PARAMS((const char *, struct stat *));
 # define lstat(Name, Stat_buf) rpl_lstat(Name, Stat_buf)
 #endif
 
-#if defined _DIRENT_HAVE_D_TYPE || defined DTTOIF
+#if D_TYPE_IN_DIRENT && defined DTTOIF
 # define HAVE_STRUCT_DIRENT_D_TYPE 1
 # define DT_INIT(Val) = Val
 #else