projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ccc189
)
Use `#if D_TYPE_IN_DIRENT && defined DTTOIF' to
author
Jim Meyering
<jim@meyering.net>
Thu, 24 May 2001 20:06:21 +0000
(20:06 +0000)
committer
Jim 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
patch
|
blob
|
history
diff --git
a/src/ls.c
b/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