From: Guido Serassio Date: Sun, 29 Mar 2009 10:26:35 +0000 (+0200) Subject: Windows port: Fix PSAPI.DLL usage, is always available on Windows NT and later X-Git-Tag: SQUID_3_2_0_1~1089 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c81b3c382eb30dfa80b257626e6e39fa26df2d89;p=thirdparty%2Fsquid.git 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 46f67d89dd..0707b6c622 --- a/src/win32.cc +++ b/src/win32.cc @@ -116,9 +116,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;