I've tried compiling git (few years ago) and mmap was not an obstacle. There was some other thing - git uses some values of OS defined values for itself, and it works on most unices, but not for MiNT. They might have fixed it, but I'm not sure. Without fixing it, git will not work.