diff options
author | Christopher Faylor <me@cgf.cx> | 2001-04-16 00:39:46 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-04-16 00:39:46 +0400 |
commit | 4535e6a9aa80c40dfebd345e1e53b788a3047aad (patch) | |
tree | fb864623c797959ef53d748fc30b7c9a72b9bd65 /winsup/cygwin/uname.cc | |
parent | 9f2cad57a65757981675decc852e9b14f86026b2 (diff) |
* uname.c (uname): Default n in in86 to 6 if Windows returns > 6.
Diffstat (limited to 'winsup/cygwin/uname.cc')
-rw-r--r-- | winsup/cygwin/uname.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/uname.cc b/winsup/cygwin/uname.cc index 54d07df9b..b113eafef 100644 --- a/winsup/cygwin/uname.cc +++ b/winsup/cygwin/uname.cc @@ -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"); |