question about hsc2hs

Jose A. Ortega Ruiz jao at gnu.org
Wed Feb 3 19:33:39 EST 2010


Ross Paterson <ross at soi.city.ac.uk> writes:

> If you compile your C program with -D_FILE_OFFSET_BITS=64 you'll get the
> same numbers that hsc2hs does.

Aha, that was the key to solve my problem: programs or libraries
compiled with that flag must use statfs64() instead of statfs(). Binding
to the former in my .hsc produces correct results.

Thanks for the hint, Ross.

Cheers,
jao



More information about the Glasgow-haskell-users mailing list