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:
authorJon Turney <jon.turney@dronecode.org.uk>2021-05-20 20:28:01 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2021-05-22 18:06:51 +0300
commita9c8050c363cfaa959004231adad8456b4df5c32 (patch)
tree9fb76b08002bc0375ba54fa410a4c5879d3d1f7a /winsup/utils/ldd.cc
parentbce3563e988137a23a6867d749b727825a2ad96a (diff)
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.
Diffstat (limited to 'winsup/utils/ldd.cc')
-rw-r--r--winsup/utils/ldd.cc1
1 files changed, 1 insertions, 0 deletions
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 <libgen.h>
#define _WIN32_WINNT 0x0a00
+#define PSAPI_VERSION 1
#include <windows.h>
#include <winternl.h>
#include <imagehlp.h>