From 11a3e71da434939895cc504e20e735eb656b1c74 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Wed, 20 Mar 2002 22:39:50 +0000 Subject: mdadm-0.7.2 --- Detail.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Detail.c') diff --git a/Detail.c b/Detail.c index 3fefc47a..50828270 100644 --- a/Detail.c +++ b/Detail.c @@ -83,9 +83,12 @@ int Detail(char *dev, int brief) else { long array_size; long long larray_size; +#ifdef BLKGETSIZE64 if (ioctl(fd, BLKGETSIZE64, &larray_size)==0) ; - else if (ioctl(fd, BLKGETSIZE, &array_size)==0) + else +#endif + if (ioctl(fd, BLKGETSIZE, &array_size)==0) larray_size = array_size<<9; else larray_size = 0; -- cgit v1.2.3