Ignore:
Timestamp:
Jul 7, 2011, 9:33:48 PM (14 years ago)
Author:
bird
Message:

kmk: build fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/variable.c

    r2451 r2452  
    10871087
    10881088
    1089 #if defined(KMK) && !defined(WINDOWS32) 
     1089#if defined(KMK) && !defined(WINDOWS32)
    10901090/* Parses out the next number from the uname release level string.  Fast
    10911091   forwards to the end of the string when encountering some non-conforming
    10921092   chars. */
    1093  
     1093
    10941094static unsigned long parse_release_number (const char **ppsz)
    10951095{
     
    11321132  struct variable *envvar2;
    11331133# ifdef WINDOWS32
    1134   OSVERSIONINFOEX vix;
     1134  OSVERSIONINFOEX oix;
    11351135# else
    11361136  struct utsname uts;
     
    12131213  /* The host kernel version. */
    12141214#if defined(WINDOWS32)
    1215   memset (&oix, sizeof (oix));
     1215  memset (&oix, '\0', sizeof (oix));
    12161216  oix.dwOSVersionInfoSize = sizeof(OSVERSIONINFOEX);
    12171217  if (!GetVersionEx ((LPOSVERSIONINFO)&oix))
     
    12291229    }
    12301230  else
    1231     { 
     1231    {
    12321232      ulMajor = oix.dwPlatformId == 1 ? 0 /*Win95/98/ME*/
    1233               ? oix.dwPlatformId == 3 ? 1 /*WinCE*/
     1233              : oix.dwPlatformId == 3 ? 1 /*WinCE*/
    12341234              : 2; /*??*/
    12351235      ulMinor = oix.dwMajorVersion;
    12361236      ulPatch = oix.dwMinorVersion;
    1237       ul4th   = oix.WservicePackMajor;
     1237      ul4th   = oix.wServicePackMajor;
    12381238    }
    12391239#else
Note: See TracChangeset for help on using the changeset viewer.