diff --git a/src/os/win32/win32_sigar.c b/src/os/win32/win32_sigar.c index 0d3580f4..1b09139d 100644 --- a/src/os/win32/win32_sigar.c +++ b/src/os/win32/win32_sigar.c @@ -142,8 +142,11 @@ int sigar_os_open(sigar_t **sigar) version.dwOSVersionInfoSize = sizeof(version); GetVersionEx(&version); - (*sigar)->winnt = - (version.dwPlatformId == VER_PLATFORM_WIN32_NT); + /* + * 4 == NT 4.0 + * 5 == 2000, XP, 2003 Server + */ + (*sigar)->winnt = (version.dwMajorVersion == 4); if (USING_WIDE_S(*sigar)) { WCHAR wmachine[MAX_PATH+1];