From 1f9e37e36117c51a17f017143f1b68787d913979 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 22 Feb 2021 19:48:49 -0600 Subject: Remove ifdefs from stat. --- lib/portability.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/portability.h b/lib/portability.h index b3646473..54f97afd 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -215,6 +215,11 @@ int posix_fallocate(int, off_t, off_t); // macOS keeps newlocale(3) in the non-POSIX rather than . #include +static inline long statfs_bsize(struct statfs *sf) { return sf->f_iosize; } +static inline long statfs_frsize(struct statfs *sf) { return sf->f_bsize; } +#else +static inline long statfs_bsize(struct statfs *sf) { return sf->f_bsize; } +static inline long statfs_frsize(struct statfs *sf) { return sf->f_frsize; } #endif -- cgit v1.2.3