[Hampshire] gcc and 64-bit file sizes

Αρχική Σελίδα

Reply to this message
Συντάκτης: Vic
Ημερομηνία:  
Προς: 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.