question about hsc2hs

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

Ross Paterson <ross at> 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.


More information about the Glasgow-haskell-users mailing list