* uname.c (uname): Default n in in86 to 6 if Windows returns > 6.

This commit is contained in:
Christopher Faylor 2001-04-15 20:39:46 +00:00
parent 9f2cad57a6
commit 4535e6a9aa
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Sun Apr 15 16:36:27 2001 Christopher Faylor <cgf@cygnus.com>
* uname.c (uname): Default n in in86 to 6 if Windows returns > 6.
Sun Apr 15 15:56:00 2001 Corinna Vinschen <corinna@vinschen.de> Sun Apr 15 15:56:00 2001 Corinna Vinschen <corinna@vinschen.de>
* path.cc (add_ext_from_sym): Redefine to call `add_ext_from_sym_'. * path.cc (add_ext_from_sym): Redefine to call `add_ext_from_sym_'.

View File

@ -70,7 +70,9 @@ uname (struct utsname *name)
break; break;
case winNT: case winNT:
/* wProcessorLevel only valid in Windows NT */ /* 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; break;
default: default:
strcpy (name->machine, "i386"); strcpy (name->machine, "i386");