[Hampshire] gcc and 64-bit file sizes

トップ ページ

このメッセージに返信
著者: Vic
日付:  
To: hampshire
題目: [Hampshire] gcc and 64-bit file sizes
Hi All.

I'm playing with fstat() and friends, trying to get a 64-bit file size
back. struct stat is defined in sys/stat.h, and that seems to cope with
64-bit sizes if __USE_FILE_OFFSET64 is defined.

Now I've tried defining that with a simple -D option, but that doesn't
work. Does anyone know the correct gcc incantation to get it to build
64-bit strct stats? I'm using gcc3, BTW.

Thanks!

Vic.