It worked.
In memorymappedfile.cpp I added
at line 14:
#if defined(__WXGTK__) || defined(__WXMAC__)
#include "errno.h"
#endif
and at line 222:
#elif defined(__BSD__) || defined(__DARWIN__)
off_t size = lseek(hFile, 0, SEEK_END);
lseek(hFile, 0, SEEK_SET);//go back to the start of the file
if (-1 == size)
{
throw wxMemoryMappedInvalidFileSize();
}
return wxULongLong(size);
#else
Thanks a lot. I hope this goes into the next rev.