summaryrefslogtreecommitdiff
path: root/src/posix.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-10-27 10:39:45 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2014-10-27 10:39:45 +0100
commit177a29d8321ac2574973c2d63d77754abc85ede8 (patch)
tree1331c4c93be4983d2f99c900da3eb225ad7e5e39 /src/posix.c
parentaabe1e5a44301d33d4114a6bb370d79575864536 (diff)
parent62e562f92b45b6a9b124452f7de6b9e86a179224 (diff)
downloadlibgit2-177a29d8321ac2574973c2d63d77754abc85ede8.tar.gz
Merge commit 'refs/pull/2366/head' of github.com:libgit2/libgit2
Diffstat (limited to 'src/posix.c')
-rw-r--r--src/posix.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/posix.c b/src/posix.c
index 21b049e1b..d5e6875b5 100644
--- a/src/posix.c
+++ b/src/posix.c
@@ -206,10 +206,11 @@ int p_write(git_file fd, const void *buf, size_t cnt)
#include "map.h"
-long git__page_size(void)
+int git__page_size(size_t *page_size)
{
/* dummy; here we don't need any alignment anyway */
- return 4096;
+ *page_size = 4096;
+ return 0;
}