From 82c86650e11bfe6a4932312e76102271be9e0aac Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Tue, 27 Jan 2004 20:53:57 +0000 Subject: [PATCH] Define BLKGETSIZE64 on systems with out-of-date header files. --- lib/device/dev-io.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/device/dev-io.c b/lib/device/dev-io.c index 87c574f4c..020a74497 100644 --- a/lib/device/dev-io.c +++ b/lib/device/dev-io.c @@ -24,6 +24,9 @@ # undef WUNTRACED /* Avoid redefinition */ # include /* For block ioctl definitions */ # define BLKSIZE_SHIFT SECTOR_SHIFT +# ifndef BLKGETSIZE64 /* fs.h out-of-date */ +# define BLKGETSIZE64 _IOR(0x12, 114, size_t) +# endif /* BLKGETSIZE64 */ #else # include # define BLKBSZGET DKIOCGETBLOCKSIZE