From 63613d493599030d87a9aa6d6848d2251d5694dd Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
Date: Fri, 15 Jul 2011 16:18:18 +0100 Subject: [PATCH] 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(-) 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': { -- 2.47.2