From: Amos Jeffries Date: Sun, 4 May 2008 11:03:31 +0000 (+1200) Subject: Author: Guido Serassio X-Git-Tag: SQUID_3_0_STABLE6~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ae4c22bae90ec6500ed1841cc3ec79bc38ac322;p=thirdparty%2Fsquid.git Author: Guido Serassio Windows port: Return the effective system pagesize in getpagesize() --- diff --git a/lib/win32lib.c b/lib/win32lib.c old mode 100644 new mode 100755 index 34df1334e6..58b130dc94 --- a/lib/win32lib.c +++ b/lib/win32lib.c @@ -63,7 +63,13 @@ void GetProcessName(pid_t, char *); size_t getpagesize() { - return 4096; + static DWORD system_pagesize = 0; + if (!system_pagesize) { + SYSTEM_INFO system_info; + GetSystemInfo(&system_info); + system_pagesize = system_info.dwPageSize; + } + return system_pagesize; } #endif