public inbox for
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: Ensure PSAPI_VERSION is 1 when building ldd
@ 2021-05-22 15:07 Jon TURNEY
  0 siblings, 0 replies; only message in thread
From: Jon TURNEY @ 2021-05-22 15:07 UTC (permalink / raw)
  To: cygwin-cvs;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

 winsup/utils/ | 1 +
 1 file changed, 1 insertion(+)

diff --git a/winsup/utils/ b/winsup/utils/
index 183e02cd4..cc1349655 100644
--- a/winsup/utils/
+++ b/winsup/utils/
@@ -38,6 +38,7 @@
 #include <libgen.h>
 #define _WIN32_WINNT 0x0a00
+#define PSAPI_VERSION 1
 #include <windows.h>
 #include <winternl.h>
 #include <imagehlp.h>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-22 15:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-22 15:07 [newlib-cygwin] Cygwin: Ensure PSAPI_VERSION is 1 when building ldd Jon TURNEY

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).