plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 76e6aca867e3e48ea04fbcf7284c45369a69829e
parent 7f596de86a64c36b6f0804baeca4f2c9d79af396
Author: rsc <devnull@localhost>
Date:   Sat, 15 May 2004 23:16:38 +0000

old linux

Diffstat:
Msrc/lib9/_p9dir.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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)