summaryrefslogtreecommitdiff
path: root/src/unix/map.c
diff options
context:
space:
mode:
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;