summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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.