Skip to content

Commit

Permalink
Fix definition of BLKGETSIZE64 on FreeBSD
Browse files Browse the repository at this point in the history
The matching ioctl is DIOCGMEDIASIZE.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <freqlabs@FreeBSD.org>
Signed-off-by: Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Closes #10818
  • Loading branch information
arichardson authored Aug 27, 2020
1 parent 735ba76 commit 2b07c5a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/libspl/include/os/freebsd/sys/mount.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

/*
Expand Down

0 comments on commit 2b07c5a

Please sign in to comment.