aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/portability.h4
-rw-r--r--toys/posix/df.c2
2 files changed, 1 insertions, 5 deletions
diff --git a/lib/portability.h b/lib/portability.h
index bbba12d8..b3646473 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -346,10 +346,6 @@ struct xnotify *xnotify_init(int max);
int xnotify_add(struct xnotify *not, int fd, char *path);
int xnotify_wait(struct xnotify *not, char **path);
-#ifdef __APPLE__
-#define f_frsize f_iosize
-#endif
-
int sig_to_num(char *s);
char *num_to_sig(int sig);
diff --git a/toys/posix/df.c b/toys/posix/df.c
index c8f492ea..0520923e 100644
--- a/toys/posix/df.c
+++ b/toys/posix/df.c
@@ -102,7 +102,7 @@ static void show_mt(struct mtab_list *mt, int measuring)
suap[1] = mt->statvfs.f_files - mt->statvfs.f_ffree;
suap[2] = getuid() ? mt->statvfs.f_favail : mt->statvfs.f_ffree;
} else {
- block = maxof(mt->statvfs.f_bsize, 1);
+ block = maxof(mt->statvfs.f_frsize, 1);
suap[0] = mt->statvfs.f_blocks;
suap[1] = mt->statvfs.f_blocks - mt->statvfs.f_bfree;
suap[2] = getuid() ? mt->statvfs.f_bavail : mt->statvfs.f_bfree;