diff options
author | Philip Kelley <phkelley@hotmail.com> | 2014-05-17 11:38:03 -0400 |
---|---|---|
committer | Philip Kelley <phkelley@hotmail.com> | 2014-05-17 11:38:03 -0400 |
commit | bf6a5b6143a733dc171878140f46c419160e1660 (patch) | |
tree | 9297aa8e7e7c802678c073d1fb162e3d3099baea /src/unix/map.c | |
parent | 191ff93609efd393bcb2d4747d5cb9779a78a73f (diff) | |
parent | 0731a5b4db086eefac1a842e37526ef7bdbaa7de (diff) | |
download | libgit2-bf6a5b6143a733dc171878140f46c419160e1660.tar.gz |
Merge remote-tracking branch 'upstream/cmn/indexer-mmap' into development
Diffstat (limited to 'src/unix/map.c')
-rw-r--r-- | src/unix/map.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/unix/map.c b/src/unix/map.c index e62ab3e76..3d0cbbaf8 100644 --- a/src/unix/map.c +++ b/src/unix/map.c @@ -10,8 +10,14 @@ #include "map.h" #include <sys/mman.h> +#include <unistd.h> #include <errno.h> +long git__page_size(void) +{ + return sysconf(_SC_PAGE_SIZE); +} + int p_mmap(git_map *out, size_t len, int prot, int flags, int fd, git_off_t offset) { int mprot = 0; |