Page 1 of 1

off64_t undefined on OS X and BSD (patch)

Posted: Wed Nov 12, 2008 5:11 pm
by KunaiTeam

Patch.cpp uses off64_t, fseeko64 and ftello64 to ensure that it can open files larger than 4 GB in size. In linux, off_t is 32 bits, necessitating the need for off64_t, but off_t has been 64-bit in BSD for years, so it does not have off64_t. Since OS X is based on BSD, it also does not have off64_t, and Patch.cpp fails to compile (as of revision 800, and possibly earlier revisions).

 

Attached is a patch to correct this problem for OS X and BSD systems.


off64_t undefined on OS X and BSD (patch)

Posted: Wed Nov 12, 2008 5:48 pm
by spacy51

comitted