mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
Define BLKGETSIZE64 on systems with out-of-date header files.
This commit is contained in:
parent
cf37d5c7ab
commit
82c86650e1
@ -24,6 +24,9 @@
|
|||||||
# undef WUNTRACED /* Avoid redefinition */
|
# undef WUNTRACED /* Avoid redefinition */
|
||||||
# include <linux/fs.h> /* For block ioctl definitions */
|
# include <linux/fs.h> /* For block ioctl definitions */
|
||||||
# define BLKSIZE_SHIFT SECTOR_SHIFT
|
# define BLKSIZE_SHIFT SECTOR_SHIFT
|
||||||
|
# ifndef BLKGETSIZE64 /* fs.h out-of-date */
|
||||||
|
# define BLKGETSIZE64 _IOR(0x12, 114, size_t)
|
||||||
|
# endif /* BLKGETSIZE64 */
|
||||||
#else
|
#else
|
||||||
# include <sys/disk.h>
|
# include <sys/disk.h>
|
||||||
# define BLKBSZGET DKIOCGETBLOCKSIZE
|
# define BLKBSZGET DKIOCGETBLOCKSIZE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user