diff options
-rw-r--r-- | src/lib9/_p9dir.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib9/_p9dir.c b/src/lib9/_p9dir.c index 00d76789..7c278a1f 100644 --- a/src/lib9/_p9dir.c +++ b/src/lib9/_p9dir.c @@ -53,8 +53,10 @@ disksize(int fd, int dev) long l; struct hd_geometry geo; +#ifdef BLKGETSIZE64 if(ioctl(fd, BLKGETSIZE64, &u64) >= 0) return u64; +#endif if(ioctl(fd, BLKGETSIZE, &l) >= 0) return l*512; if(ioctl(fd, HDIO_GETGEO, &geo) >= 0) |