From 2b07c5aa3ea001aa58185beff2e02ff992b00f63 Mon Sep 17 00:00:00 2001 From: Alexander Richardson Date: Fri, 28 Aug 2020 00:09:26 +0100 Subject: [PATCH] Fix definition of BLKGETSIZE64 on FreeBSD The matching ioctl is DIOCGMEDIASIZE. Reviewed-by: Alexander Motin Reviewed-by: Brian Behlendorf Reviewed-by: Ryan Moeller Signed-off-by: Alex Richardson Closes #10818 --- lib/libspl/include/os/freebsd/sys/mount.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/libspl/include/os/freebsd/sys/mount.h b/lib/libspl/include/os/freebsd/sys/mount.h index b402391000..e995185712 100644 --- a/lib/libspl/include/os/freebsd/sys/mount.h +++ b/lib/libspl/include/os/freebsd/sys/mount.h @@ -35,12 +35,8 @@ #include #include -/* - * Some old glibc headers don't define BLKGETSIZE64 - * and we don't want to require the kernel headers - */ #if !defined(BLKGETSIZE64) -#define BLKGETSIZE64 _IOR(0x12, 114, size_t) +#define BLKGETSIZE64 DIOCGMEDIASIZE #endif /*