libgit2/libgit2 — pull request #2366 by kitbellew (2014-05-18 15:04:12+00:00)
Title: Fix compiler warning (git_off_t cast to size_t).

Use size_t for page size, instead of long. Check result of sysconf.
Use size_t for page offset so no cast to size_t (second arg to p_mmap).
Use mod instead div/mult pair, so no cast to size_t is necessary.

@carlosmn: another minor compiler fix for #2352.