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 /*