summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-08-02 03:25:10 +0000
committerJim Meyering <jim@meyering.net>1996-08-02 03:25:10 +0000
commit2a5f4c45e1988c241d1567a592900dbf37e9ac53 (patch)
treebcc0b69b28fc3e8cfccf8def43a5c3f27b064751 /lib
parent0fa3eb4d226c352106b2d62d7d138de5313936cc (diff)
downloadcoreutils-2a5f4c45e1988c241d1567a592900dbf37e9ac53.tar.xz
(get_fs_usage) [STAT_STATFS4] [_CRAY]: Define f_bavail to f_bfree.
From by Johan Danielsson.
Diffstat (limited to 'lib')
-rw-r--r--lib/fsusage.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/fsusage.c b/lib/fsusage.c
index f10c9b341..c669c5e36 100644
--- a/lib/fsusage.c
+++ b/lib/fsusage.c
@@ -183,8 +183,11 @@ get_fs_usage (path, disk, fsp)
/* Empirically, the block counts on most SVR3 and SVR3-derived
systems seem to always be in terms of 512-byte blocks,
no matter what value f_bsize has. */
-# if _AIX
+# if _AIX || defined(_CRAY)
# define CONVERT_BLOCKS(b) adjust_blocks ((b), fsd.f_bsize, 512)
+# ifdef _CRAY
+# define f_bavail f_bfree
+# endif
# else
# define CONVERT_BLOCKS(b) (b)
# ifndef _SEQUENT_ /* _SEQUENT_ is DYNIX/ptx. */