aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAlexander Richardson <[email protected]>2020-08-28 00:09:26 +0100
committerGitHub <[email protected]>2020-08-27 16:09:26 -0700
commit2b07c5aa3ea001aa58185beff2e02ff992b00f63 (patch)
tree1184dc58d209eaae6c6d988b2a51e61f18b470a1 /lib
parent735ba76104fb5d701641f1785f75b4c74809155c (diff)
Fix definition of BLKGETSIZE64 on FreeBSD
The matching ioctl is DIOCGMEDIASIZE. Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Alex Richardson <[email protected]> Closes #10818
Diffstat (limited to 'lib')
-rw-r--r--lib/libspl/include/os/freebsd/sys/mount.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libspl/include/os/freebsd/sys/mount.h b/lib/libspl/include/os/freebsd/sys/mount.h
index b40239100..e99518571 100644
--- a/lib/libspl/include/os/freebsd/sys/mount.h
+++ b/lib/libspl/include/os/freebsd/sys/mount.h
@@ -35,12 +35,8 @@
#include <string.h>
#include <stdlib.h>
-/*
- * 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
/*