From 38a7b45e0e491b7fa49ff03d58df207bd56f749d Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 24 May 2001 20:06:21 +0000 Subject: 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. --- src/ls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2