aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-04-15 20:39:46 +0000
committerChristopher Faylor <me@cgf.cx>2001-04-15 20:39:46 +0000
commit4535e6a9aa80c40dfebd345e1e53b788a3047aad (patch)
treefb864623c797959ef53d748fc30b7c9a72b9bd65 /winsup
parent9f2cad57a65757981675decc852e9b14f86026b2 (diff)
downloadnewlib-4535e6a9aa80c40dfebd345e1e53b788a3047aad.zip
newlib-4535e6a9aa80c40dfebd345e1e53b788a3047aad.tar.gz
newlib-4535e6a9aa80c40dfebd345e1e53b788a3047aad.tar.bz2
* uname.c (uname): Default n in in86 to 6 if Windows returns > 6.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/uname.cc4
2 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 5d448cb..e429735 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -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>
* path.cc (add_ext_from_sym): Redefine to call `add_ext_from_sym_'.
diff --git a/winsup/cygwin/uname.cc b/winsup/cygwin/uname.cc
index 54d07df..b113eaf 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");