From: Pádraig Brady
Date: Fri, 15 Jul 2011 15:18:18 +0000 (+0100) Subject: build: avoid a st_blksize compile failure on some systems X-Git-Tag: v8.13~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63613d493599030d87a9aa6d6848d2251d5694dd;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/src/stat.c b/src/stat.c index 0ad465e223..535e141849 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': {