From 3d1360113d2d917124f9715baa9e2cfb6ad96915 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 7 Apr 2020 18:54:59 +0200 Subject: Cygwin: utils: override definition of PMEM_EXTENDED_PARAMETER PMEM_EXTENDED_PARAMETER is defined in the local winlean.h as long as mingw-w64 doesn't define it (in winnt.h). ntdll.h needs the definition for declaring NtMapViewOfSectionEx. cygpath.cc and ps.cc both include ntdll.h but not winlean.h, so they complain about the missing definition. Signed-off-by: Corinna Vinschen --- winsup/utils/ps.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'winsup/utils/ps.cc') diff --git a/winsup/utils/ps.cc b/winsup/utils/ps.cc index 731f72c18..4d7a56d3d 100644 --- a/winsup/utils/ps.cc +++ b/winsup/utils/ps.cc @@ -6,6 +6,7 @@ This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for details. */ +#define PMEM_EXTENDED_PARAMETER PVOID #include #include #include -- cgit v1.2.3