summaryrefslogtreecommitdiff
path: root/src/ls.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-05-24 20:06:21 +0000
committerJim Meyering <jim@meyering.net>2001-05-24 20:06:21 +0000
commit38a7b45e0e491b7fa49ff03d58df207bd56f749d (patch)
tree1d87e494eed4113923bfee580955d36d8e22fff4 /src/ls.c
parent2ccc189bd690a3ae0c429320f43d3978f1a989c1 (diff)
downloadcoreutils-38a7b45e0e491b7fa49ff03d58df207bd56f749d.tar.xz
Use `#if D_TYPE_IN_DIRENT && defined DTTOIF' to
determine whether to enable the DT_INIT definition, not the less portable `#if defined _DIRENT_HAVE_D_TYPE || defined DTTOIF'. Reported by Eli Zaretskii.
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ls.c b/src/ls.c
index cacd71be2..5f7131c02 100644
--- 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