diff options
author | Pádraig Brady <P@draigBrady.com> | 2011-07-15 16:18:18 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2011-07-15 16:23:28 +0100 |
commit | 63613d493599030d87a9aa6d6848d2251d5694dd (patch) | |
tree | 5287434dd1c30d5cf1b9fa45a773c93a6abed873 /src | |
parent | 4f71710c420caa8d9efa93fb30c308976be0eda0 (diff) | |
download | coreutils-63613d493599030d87a9aa6d6848d2251d5694dd.tar.xz |
build: avoid a st_blksize compile failure on some systems
* src/stat.c (print_stat): Use ST_BLKSIZE() rather than
accessing st_blksize directly, which is not present on
NonStop at least. Reported by Joachim Schmitz.
Diffstat (limited to 'src')
-rw-r--r-- | src/stat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stat.c b/src/stat.c index 0ad465e22..535e14184 100644 --- a/src/stat.c +++ b/src/stat.c @@ -951,7 +951,7 @@ print_stat (char *pformat, size_t prefix_len, unsigned int m, out_uint (pformat, prefix_len, ST_NBLOCKS (*statbuf)); break; case 'o': - out_uint (pformat, prefix_len, statbuf->st_blksize); + out_uint (pformat, prefix_len, ST_BLKSIZE (*statbuf)); break; case 'w': { |