From d2c4355820c3bfe3de1208ba634d72e7663b7d36 Mon Sep 17 00:00:00 2001 From: corinna Date: Mon, 3 Oct 2005 09:24:42 +0000 Subject: [PATCH] * uname.cc (uname): Disable use of GetNativeSystemInfo. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/uname.cc | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 3ef22c971a..d5711b324f 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2005-10-03 Corinna Vinschen + + * uname.cc (uname): Disable use of GetNativeSystemInfo. + 2005-10-01 Christopher Faylor * dcrt0.cc (get_exit_lock): Use myself.lock rather than exit_lock. diff --git a/winsup/cygwin/uname.cc b/winsup/cygwin/uname.cc index 35cf758044..fa89373d2f 100644 --- a/winsup/cygwin/uname.cc +++ b/winsup/cygwin/uname.cc @@ -31,10 +31,16 @@ 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. */ BOOL is_64bit_machine = FALSE; if (IsWow64Process (hMainProc, &is_64bit_machine) && is_64bit_machine) GetNativeSystemInfo (&sysinfo); else +#endif GetSystemInfo (&sysinfo); /* Computer name */ -- 2.11.0