diff options
author | rsc <devnull@localhost> | 2004-05-15 23:16:38 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-05-15 23:16:38 +0000 |
commit | 76e6aca867e3e48ea04fbcf7284c45369a69829e (patch) | |
tree | ebabe23233fc8bc17a3913670713aa74240c3c67 /src | |
parent | 7f596de86a64c36b6f0804baeca4f2c9d79af396 (diff) | |
download | plan9port-76e6aca867e3e48ea04fbcf7284c45369a69829e.tar.gz plan9port-76e6aca867e3e48ea04fbcf7284c45369a69829e.tar.bz2 plan9port-76e6aca867e3e48ea04fbcf7284c45369a69829e.zip |
old linux
Diffstat (limited to 'src')
-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) |