Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/wincap.cc')
-rw-r--r--winsup/cygwin/wincap.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/wincap.cc b/winsup/cygwin/wincap.cc
index 898f098c6..329cfec69 100644
--- a/winsup/cygwin/wincap.cc
+++ b/winsup/cygwin/wincap.cc
@@ -713,7 +713,7 @@ static NO_COPY wincaps wincap_vista = {
has_working_virtual_lock:true
};
-wincapc wincap;
+wincapc wincap __attribute__((section (".cygwin_dll_common"), shared));
void
wincapc::init ()
@@ -820,6 +820,10 @@ wincapc::init ()
((wincaps *)this->caps)->is_server = true;
}
+ BOOL is_wow64_proc = FALSE;
+ if (IsWow64Process (GetCurrentProcess (), &is_wow64_proc))
+ wow64 = is_wow64_proc;
+
__small_sprintf (osnam, "%s-%d.%d", os, version.dwMajorVersion,
version.dwMinorVersion);
}