X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=compat%2Fmingw.c;h=15fe33eaa0f220e94131006bca89effd14d6d058;hb=f81be17e1c4752c71815c26f5266604c2b7756b7;hp=6b5b5b2c7011a89c0415ebb89406c4a3ac53e9a9;hpb=f539cfbe8c157885197d1b6e4c1bcc6cbc54d0b9;p=git.git diff --git a/compat/mingw.c b/compat/mingw.c index 6b5b5b2c7..15fe33eaa 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -1000,6 +1000,18 @@ repeat: return -1; } +/* + * Note that this doesn't return the actual pagesize, but + * the allocation granularity. If future Windows specific git code + * needs the real getpagesize function, we need to find another solution. + */ +int mingw_getpagesize(void) +{ + SYSTEM_INFO si; + GetSystemInfo(&si); + return si.dwAllocationGranularity; +} + struct passwd *getpwuid(int uid) { static char user_name[100];