https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=013de6b097feb94b58386a2a51c32ecab5e80db7
commit 013de6b097feb94b58386a2a51c32ecab5e80db7 Author: Corinna Vinschen <[email protected]> AuthorDate: Thu Nov 30 21:14:48 2023 +0100 Commit: Corinna Vinschen <[email protected]> CommitDate: Thu Nov 30 22:37:35 2023 +0100 Cygwin: revert autoloading of DiscardVirtualMemory Commit a3ae2a734892 ("Cygwin: don't autoload some kernel32 functions") erroneously removed DiscardVirtualMemory from the list of autloaded functions. DiscardVirtualMemory is not available on Windows 8.1. Fixes: a3ae2a734892 ("Cygwin: don't autoload some kernel32 functions") Signed-off-by: Corinna Vinschen <[email protected]> Diff: --- winsup/cygwin/autoload.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc index c8909caff4b1..c1a124c1d120 100644 --- a/winsup/cygwin/autoload.cc +++ b/winsup/cygwin/autoload.cc @@ -465,6 +465,7 @@ LoadDLLfunc (GetUdpTable, iphlpapi) LoadDLLfunc (if_indextoname, iphlpapi) LoadDLLfunc (if_nametoindex, iphlpapi) +LoadDLLfuncEx2 (DiscardVirtualMemory, kernel32, 1, 127) LoadDLLfuncEx (ClosePseudoConsole, kernel32, 1) LoadDLLfuncEx (CreatePseudoConsole, kernel32, 1) LoadDLLfuncEx (IsWow64Process2, kernel32, 1)
