off64_t undefined on OS X and BSD (patch)

This particular forum is archives, bug reports should be made at https://github.com/visualboyadvance-m/v ... e-m/issues


Post Reply
KunaiTeam
Junior Member
Posts: 44
Joined: Thu Aug 14, 2008 9:37 pm

off64_t undefined on OS X and BSD (patch)

Post 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.

spacy51
Senior Member
Posts: 371
Joined: Tue Mar 18, 2008 4:59 pm

off64_t undefined on OS X and BSD (patch)

Post by spacy51 »

comitted

Post Reply