Revision: 14466 Author: adrian.chadd Date: Sat Mar 20 02:58:36 2010 Log: Partial patch from Issue #94 - Cygwin/Win7 support
Add in some basic definitions to support Windows 7. This doesn't add -all- of the required support though; it's just to minimise the size of the patch in progress. http://code.google.com/p/lusca-cache/source/detail?r=14466 Modified: /branches/LUSCA_HEAD/src/dns_internal.c /branches/LUSCA_HEAD/src/enums.h /branches/LUSCA_HEAD/src/win32.c ======================================= --- /branches/LUSCA_HEAD/src/dns_internal.c Thu Oct 15 16:08:35 2009 +++ /branches/LUSCA_HEAD/src/dns_internal.c Sat Mar 20 02:58:36 2010 @@ -247,6 +247,7 @@ case _WIN_OS_WINXP: case _WIN_OS_WINNET: case _WIN_OS_WINLON: + case _WIN_OS_WIN7: /* get nameservers from the Windows 2000 registry */ /* search all interfaces for DNS server addresses */ if (RegOpenKey(HKEY_LOCAL_MACHINE, ======================================= --- /branches/LUSCA_HEAD/src/enums.h Fri Feb 19 19:48:39 2010 +++ /branches/LUSCA_HEAD/src/enums.h Sat Mar 20 02:58:36 2010 @@ -436,7 +436,8 @@ _WIN_OS_WIN2K, _WIN_OS_WINXP, _WIN_OS_WINNET, - _WIN_OS_WINLON + _WIN_OS_WINLON, + _WIN_OS_WIN7 }; #endif ======================================= --- /branches/LUSCA_HEAD/src/win32.c Thu Jul 24 04:49:14 2008 +++ /branches/LUSCA_HEAD/src/win32.c Sat Mar 20 02:58:36 2010 @@ -280,6 +280,10 @@ WIN32_OS_string = xstrdup("Windows Server 2008"); return _WIN_OS_WINLON; } + if ((osvi.dwMajorVersion == 6) && (osvi.dwMinorVersion == 1)) { + WIN32_OS_string = xstrdup("Windows 7"); + return _WIN_OS_WIN7; + } break; case VER_PLATFORM_WIN32_WINDOWS: if ((osvi.dwMajorVersion == 4) && (osvi.dwMinorVersion == 0)) { -- You received this message because you are subscribed to the Google Groups "lusca-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/lusca-commit?hl=en.
