From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2201) id CAD85387088D; Sat, 22 May 2021 15:07:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CAD85387088D Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Jon TURNEY To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: Ensure PSAPI_VERSION is 1 when building ldd X-Act-Checkin: newlib-cygwin X-Git-Author: Jon Turney X-Git-Refname: refs/heads/master X-Git-Oldrev: bce3563e988137a23a6867d749b727825a2ad96a X-Git-Newrev: a9c8050c363cfaa959004231adad8456b4df5c32 Message-Id: <20210522150712.CAD85387088D@sourceware.org> Date: Sat, 22 May 2021 15:07:12 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 May 2021 15:07:12 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=a9c8050c363cfaa959004231adad8456b4df5c32 commit a9c8050c363cfaa959004231adad8456b4df5c32 Author: Jon Turney Date: Thu May 20 18:28:01 2021 +0100 Cygwin: Ensure PSAPI_VERSION is 1 when building ldd The default PSAPI_VERSION is controlled by WIN32_WINNT, which we set to 0x0a00 when building ldd, which gets PSAPI_VERSION=2. This causes K32GetModuleFileNameEx to be used for GetModuleFileNameEx, which isn't available on Windows Vista. Define PSAPI_VERSION as 1 for the built executable to work on Windows Vista. Diff: --- winsup/utils/ldd.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/winsup/utils/ldd.cc b/winsup/utils/ldd.cc index 183e02cd4..cc1349655 100644 --- a/winsup/utils/ldd.cc +++ b/winsup/utils/ldd.cc @@ -38,6 +38,7 @@ #include #define _WIN32_WINNT 0x0a00 +#define PSAPI_VERSION 1 #include #include #include