]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Windows port: Fix PSAPI.DLL usage, is always available on Windows NT and later
authorGuido Serassio <serassio@squid-cache.org>
Sun, 29 Mar 2009 10:26:35 +0000 (12:26 +0200)
committerGuido Serassio <serassio@squid-cache.org>
Sun, 29 Mar 2009 10:26:35 +0000 (12:26 +0200)
src/win32.cc [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 46f67d8..0707b6c
@@ -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;