aboutsummaryrefslogtreecommitdiff
path: root/lib/portability.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2020-03-10 09:18:22 -0700
committerRob Landley <rob@landley.net>2020-03-11 09:40:00 -0500
commite400e605471a5bc6571623b4446c41bfc9eb4942 (patch)
tree1dc99958bfac5e57865b211b3118515393107b90 /lib/portability.h
parente6b3ac496f8b72f089247e93e6892bb6fa094976 (diff)
downloadtoybox-e400e605471a5bc6571623b4446c41bfc9eb4942.tar.gz
Fix Mac build.
The recent re-enablement of the BLKGETSIZE64 code broke the Mac build. Use the equivalent <sys/disk.h> ioctl() pair instead.
Diffstat (limited to 'lib/portability.h')
-rw-r--r--lib/portability.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/portability.h b/lib/portability.h
index 76790f4d..acc32fd4 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -359,3 +359,5 @@ int dev_major(int dev);
int dev_makedev(int major, int minor);
char *fs_type_name(struct statfs *statfs);
+
+int get_block_device_size(int fd, unsigned long long *size);