mirror of
https://github.com/coreutils/coreutils.git
synced 2024-12-13 11:55:02 +08:00
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.
This commit is contained in:
parent
2ccc189bd6
commit
38a7b45e0e
2
src/ls.c
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user