diff options
Diffstat (limited to 'coreutils/stat.c')
-rw-r--r-- | coreutils/stat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/stat.c b/coreutils/stat.c index 32bc5e2d3..cf13af0b6 100644 --- a/coreutils/stat.c +++ b/coreutils/stat.c | |||
@@ -317,7 +317,7 @@ static void FAST_FUNC print_stat(char *pformat, const char m, | |||
317 | printfs(pformat, filename); | 317 | printfs(pformat, filename); |
318 | } else if (m == 'N') { | 318 | } else if (m == 'N') { |
319 | strcatc(pformat, 's'); | 319 | strcatc(pformat, 's'); |
320 | #if !ENABLE_PLATFORM_MINGW32 | 320 | #if ENABLE_PLATFORM_POSIX || ENABLE_FEATURE_READLINK2 |
321 | if (S_ISLNK(statbuf->st_mode)) { | 321 | if (S_ISLNK(statbuf->st_mode)) { |
322 | char *linkname = xmalloc_readlink_or_warn(filename); | 322 | char *linkname = xmalloc_readlink_or_warn(filename); |
323 | if (linkname == NULL) | 323 | if (linkname == NULL) |
@@ -712,7 +712,7 @@ static bool do_stat(const char *filename, const char *format) | |||
712 | gw_ent = getgrgid(statbuf.st_gid); | 712 | gw_ent = getgrgid(statbuf.st_gid); |
713 | pw_ent = getpwuid(statbuf.st_uid); | 713 | pw_ent = getpwuid(statbuf.st_uid); |
714 | 714 | ||
715 | #if !ENABLE_PLATFORM_MINGW32 | 715 | #if ENABLE_PLATFORM_POSIX || ENABLE_FEATURE_READLINK2 |
716 | if (S_ISLNK(statbuf.st_mode)) | 716 | if (S_ISLNK(statbuf.st_mode)) |
717 | linkname = xmalloc_readlink_or_warn(filename); | 717 | linkname = xmalloc_readlink_or_warn(filename); |
718 | if (linkname) { | 718 | if (linkname) { |