Open goatface opened 7 years ago
Perhaps it would be better if we instead add -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
to the compiling commands. That way, we wouldn't need to get in the habit of using fopen64
. This also would avoid causing additional compatibility issues with OSX, which does not provide fopen64
, as everything is 64-bit.
Files over ~2 GB could not be opened on my 32-bit system. These two modest changes appear to fix the issue.