summaryrefslogtreecommitdiff
path: root/src/unix/map.c
diff options
context:
space:
mode:
authorPhilip Kelley <phkelley@hotmail.com>2014-05-17 11:38:03 -0400
committerPhilip Kelley <phkelley@hotmail.com>2014-05-17 11:38:03 -0400
commitbf6a5b6143a733dc171878140f46c419160e1660 (patch)
tree9297aa8e7e7c802678c073d1fb162e3d3099baea /src/unix/map.c
parent191ff93609efd393bcb2d4747d5cb9779a78a73f (diff)
parent0731a5b4db086eefac1a842e37526ef7bdbaa7de (diff)
downloadlibgit2-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.c6
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;