From: Amos Jeffries Date: Fri, 10 Apr 2009 09:00:12 +0000 (+1200) Subject: Author: Guido Serassio X-Git-Tag: SQUID_3_0_STABLE14~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57cd155401aaa921408634a1c4ea02dcc901b3ac;p=thirdparty%2Fsquid.git Author: Guido Serassio Windows port: Fix PSAPI.DLL usage, is always available on Windows NT and later --- diff --git a/src/win32.cc b/src/win32.cc old mode 100644 new mode 100755 index 91c1740327..0626d46ede --- a/src/win32.cc +++ b/src/win32.cc @@ -110,10 +110,8 @@ int WIN32_getrusage(int who, struct rusage *usage) { #if HAVE_WIN32_PSAPI - if ((WIN32_OS_version == _WIN_OS_WINNT) || (WIN32_OS_version == _WIN_OS_WIN2K) - || (WIN32_OS_version == _WIN_OS_WINXP) || (WIN32_OS_version == _WIN_OS_WINNET)) - { - /* On Windows NT/2000 call PSAPI.DLL for process Memory */ + if (WIN32_OS_version >= _WIN_OS_WINNT) { + /* On Windows NT and later call PSAPI.DLL for process Memory */ /* informations -- Guido Serassio */ HANDLE hProcess; PROCESS_MEMORY_COUNTERS pmc;