aboutsummaryrefslogtreecommitdiff
path: root/lib/libspl/include/os/freebsd/sys/mount.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libspl/include/os/freebsd/sys/mount.h')
-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 b4023910005b..e99518571270 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
/*