From 63613d493599030d87a9aa6d6848d2251d5694dd Mon Sep 17 00:00:00 2001 From: Pádraig Brady
Date: Fri, 15 Jul 2011 16:18:18 +0100 Subject: 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. --- src/stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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': { -- cgit v1.2.3-70-g09d2