* uname.cc (uname): Drop unused code.
This commit is contained in:
parent
41f9a410cc
commit
3b2560e500
@ -1,3 +1,7 @@
|
||||
2013-07-11 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* uname.cc (uname): Drop unused code.
|
||||
|
||||
2013-07-10 Christopher Faylor <me.cygwin2013@cgf.cx>
|
||||
|
||||
* gentlsoffsets: Clean up a little.
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* uname.cc
|
||||
|
||||
Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
|
||||
2006, 2007, 2008 Red Hat, Inc.
|
||||
2006, 2007, 2008, 2013 Red Hat, Inc.
|
||||
Written by Steve Chamberlain of Cygnus Support, sac@cygnus.com
|
||||
Rewritten by Geoffrey Noer of Cygnus Solutions, noer@cygnus.com
|
||||
|
||||
@ -31,21 +31,12 @@ uname (struct utsname *name)
|
||||
memset (name, 0, sizeof (*name));
|
||||
__small_sprintf (name->sysname, "CYGWIN_%s", wincap.osname ());
|
||||
|
||||
#if 0
|
||||
/* Recognition of the real 64 bit CPU inside of a WOW64 system, irritates
|
||||
build systems which think the native system is a 64 bit system. Since
|
||||
we're actually running in a 32 bit environment, it looks more correct
|
||||
just to use the CPU info given by WOW64. */
|
||||
if (wincap.is_wow64 ())
|
||||
GetNativeSystemInfo (&sysinfo);
|
||||
else
|
||||
#else
|
||||
/* But it seems ok to add a hint to the sysname, that we're running under
|
||||
WOW64. This might give an early clue if somebody encounters problems. */
|
||||
/* Add a hint to the sysname, that we're running under WOW64. This might
|
||||
give an early clue if somebody encounters problems. */
|
||||
if (wincap.is_wow64 ())
|
||||
strncat (name->sysname, "-WOW64",
|
||||
sizeof name->sysname - strlen (name->sysname) - 1);
|
||||
#endif
|
||||
|
||||
GetSystemInfo (&sysinfo);
|
||||
|
||||
/* Computer name */
|
||||
|
Loading…
Reference in New Issue
Block a user