diff options
author | Jim Meyering <jim@meyering.net> | 1999-11-05 09:55:24 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-11-05 09:55:24 +0000 |
commit | 6b32b53027a59eee3818091f629d3aa9feb595e4 (patch) | |
tree | 529f8443a6123ea3b568421be6ee655abb818119 /src/system.h | |
parent | 8a255624460e151537f4798fb7dbb8d7a25577bb (diff) | |
download | coreutils-6b32b53027a59eee3818091f629d3aa9feb595e4.tar.xz |
Use HAVE_STRUCT_STAT_ST_BLOCKS, not deprecated HAVE_ST_BLOCKS.
Diffstat (limited to 'src/system.h')
-rw-r--r-- | src/system.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/system.h b/src/system.h index 58b378289..4e2be1d46 100644 --- a/src/system.h +++ b/src/system.h @@ -311,14 +311,14 @@ extern int errno; ST_BLKSIZE: Preferred I/O blocksize for the file, in bytes. ST_NBLOCKS: Number of blocks in the file, including indirect blocks. ST_NBLOCKSIZE: Size of blocks used when calculating ST_NBLOCKS. */ -#ifndef HAVE_ST_BLOCKS +#ifndef HAVE_STRUCT_STAT_ST_BLOCKS # define ST_BLKSIZE(statbuf) DEV_BSIZE # if defined(_POSIX_SOURCE) || !defined(BSIZE) /* fileblocks.c uses BSIZE. */ # define ST_NBLOCKS(statbuf) ((statbuf).st_size / ST_NBLOCKSIZE + ((statbuf).st_size % ST_NBLOCKSIZE != 0)) # else /* !_POSIX_SOURCE && BSIZE */ # define ST_NBLOCKS(statbuf) (st_blocks ((statbuf).st_size)) # endif /* !_POSIX_SOURCE && BSIZE */ -#else /* HAVE_ST_BLOCKS */ +#else /* HAVE_STRUCT_STAT_ST_BLOCKS */ /* Some systems, like Sequents, return st_blksize of 0 on pipes. */ # define ST_BLKSIZE(statbuf) ((statbuf).st_blksize > 0 \ ? (statbuf).st_blksize : DEV_BSIZE) @@ -336,7 +336,7 @@ extern int errno; # endif /* _CRAY */ # endif /* not AIX PS/2 */ # endif /* !hpux */ -#endif /* HAVE_ST_BLOCKS */ +#endif /* HAVE_STRUCT_STAT_ST_BLOCKS */ #ifndef ST_NBLOCKS # define ST_NBLOCKS(statbuf) ((statbuf).st_blocks) |