]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Use S_BLKSIZE value for ST_NBLOCKSIZE where available.
authorJim Meyering <jim@meyering.net>
Mon, 24 Jan 2005 08:27:15 +0000 (08:27 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 24 Jan 2005 08:27:15 +0000 (08:27 +0000)
src/system.h

index 27aff00d799056e86af29ef261be1d90d7e7a918..ed675f3f3e14eee47001d5cf5cf6b049bf021859 100644 (file)
@@ -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.