From: Jim Meyering Date: Thu, 24 May 2001 20:06:21 +0000 (+0000) Subject: Use `#if D_TYPE_IN_DIRENT && defined DTTOIF' to X-Git-Tag: CPPI-1_9~51 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=38a7b45e0e491b7fa49ff03d58df207bd56f749d;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/src/ls.c b/src/ls.c index cacd71be25..5f7131c02c 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