[newlib-cygwin] Cygwin: Add missing IsWow64Process2 declaration

Corinna Vinschen corinna@sourceware.org
Thu May 20 08:26:20 GMT 2021


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=23d071229d3d963a252b6807ceaec50f73b1577c

commit 23d071229d3d963a252b6807ceaec50f73b1577c
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Thu May 20 10:03:34 2021 +0200

    Cygwin: Add missing IsWow64Process2 declaration
    
    The previous patch is accidentally missing the declaration of
    IsWow64Process2.  Add it belatedly.
    
    Fixes: 1865a41cb383 ("Cygwin: suppress FAST_CWD warnings on ARM64")
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/cygwin/winlean.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/winsup/cygwin/winlean.h b/winsup/cygwin/winlean.h
index 2e2308eb6..338268607 100644
--- a/winsup/cygwin/winlean.h
+++ b/winsup/cygwin/winlean.h
@@ -110,6 +110,9 @@ extern "C" {
    executed on systems that support it (a run-time condition). */
 PVOID WINAPI VirtualAlloc2 (HANDLE, PVOID, SIZE_T, ULONG, ULONG,
 			    PMEM_EXTENDED_PARAMETER, ULONG);
+/* IsWow64Process2 should be declared in <w32api/wow64apiset.h> but
+   isn't yet. */
+BOOL WINAPI IsWow64Process2(HANDLE, USHORT *, USHORT *);
 
 #ifdef __cplusplus
 }


More information about the Cygwin-cvs mailing list