* uname.c (uname): Default n in in86 to 6 if Windows returns > 6.
This commit is contained in:
@ -70,7 +70,9 @@ uname (struct utsname *name)
|
||||
break;
|
||||
case winNT:
|
||||
/* wProcessorLevel only valid in Windows NT */
|
||||
__small_sprintf (name->machine, "i%d86", sysinfo.wProcessorLevel);
|
||||
__small_sprintf (name->machine, "i%d86",
|
||||
sysinfo.dwProcessorType > 6 ?
|
||||
6 : sysinfo.dwProcessorType);
|
||||
break;
|
||||
default:
|
||||
strcpy (name->machine, "i386");
|
||||
|
Reference in New Issue
Block a user