From e400e605471a5bc6571623b4446c41bfc9eb4942 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 10 Mar 2020 09:18:22 -0700 Subject: Fix Mac build. The recent re-enablement of the BLKGETSIZE64 code broke the Mac build. Use the equivalent ioctl() pair instead. --- lib/portability.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/portability.h') 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); -- cgit v1.2.3