diff options
author | Jim Meyering <jim@meyering.net> | 1996-08-02 03:25:39 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-08-02 03:25:39 +0000 |
commit | d5aa78b54042c9f8f80075aef04f54d6c91dfefb (patch) | |
tree | d1aa3f495f668200043af2733d6b7d0f6145761c | |
parent | 2a5f4c45e1988c241d1567a592900dbf37e9ac53 (diff) | |
download | coreutils-d5aa78b54042c9f8f80075aef04f54d6c91dfefb.tar.xz |
(ST_NBLOCKS) [_CRAY]: Special case for Cray.
From by Johan Danielsson.
-rw-r--r-- | src/system.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/system.h b/src/system.h index a975336eb..19df3d46f 100644 --- a/src/system.h +++ b/src/system.h @@ -265,9 +265,13 @@ char *getenv (); # else /* !hpux */ # if defined(_AIX) && defined(_I386) /* AIX PS/2 counts st_blocks in 4K units. */ -# define ST_NBLOCKS(statbuf) ((statbuf).st_blocks * 8) +# define ST_NBLOCKS(statbuf) ((statbuf).st_blocks * 8) # else /* not AIX PS/2 */ +# if defined(_CRAY) +# define ST_NBLOCKS(statbuf) ((statbuf).st_blocks * ST_BLKSIZE(statbuf)/512) +# else /* not AIX PS/2 nor CRAY */ # define ST_NBLOCKS(statbuf) ((statbuf).st_blocks) +# endif /* not _CRAY */ # endif /* not AIX PS/2 */ # endif /* !hpux */ #endif /* HAVE_ST_BLOCKS */ |