summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-01-24 08:27:15 +0000
committerJim Meyering <jim@meyering.net>2005-01-24 08:27:15 +0000
commit570fe7948b015644d0cff0a79f8ee8921acb7c7c (patch)
treedc91c494e4eee683f9e5e5b957ef63c5e02e23dc /src
parentb46e3e42eb38950d5ecd2c13dc96b87f247193af (diff)
downloadcoreutils-570fe7948b015644d0cff0a79f8ee8921acb7c7c.tar.xz
Use S_BLKSIZE value for ST_NBLOCKSIZE where available.
Diffstat (limited to 'src')
-rw-r--r--src/system.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/system.h b/src/system.h
index 27aff00d7..ed675f3f3 100644
--- a/src/system.h
+++ b/src/system.h
@@ -337,7 +337,11 @@ initialize_exit_failure (int status)
#endif
#ifndef ST_NBLOCKSIZE
-# define ST_NBLOCKSIZE 512
+# ifdef S_BLKSIZE
+# define ST_NBLOCKSIZE S_BLKSIZE
+# else
+# define ST_NBLOCKSIZE 512
+# endif
#endif
/* Redirection and wildcarding when done by the utility itself.