From fa6a5a3a74cb822900111319c39a6a4793e4b588 Mon Sep 17 00:00:00 2001 From: Peter Foley Date: Mon, 21 Mar 2016 16:41:25 -0400 Subject: Use DnsFree instead of deprecated DnsRecordListFree The latest version of the mingw headers have been updated to make DnsRecordListFree an alias of DnsFree when targeting Windows XP or later. Use DnsFree directly, avoiding the wrapper function. /home/peter/cross/src/cygwin/winsup/cygwin/libc/minires-os-if.c:289: undefined reference to `DnsFree' winsup/cygwin/ChangeLog autoload.cc: Load DnsFree rather then DnsRecordListFree libc/minires-os-if.cc (cygwin_query): Use DnsFree rather then DnsRecordListFree Signed-off-by: Peter Foley --- winsup/cygwin/autoload.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/autoload.cc') diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc index 422e2c984..9e6184fb4 100644 --- a/winsup/cygwin/autoload.cc +++ b/winsup/cygwin/autoload.cc @@ -583,7 +583,7 @@ LoadDLLfunc (AuthzInitializeContextFromToken, 32, authz) LoadDLLfunc (AuthzInitializeResourceManager, 24, authz) LoadDLLfunc (DnsQuery_A, 24, dnsapi) -LoadDLLfunc (DnsRecordListFree, 8, dnsapi) +LoadDLLfunc (DnsFree, 8, dnsapi) LoadDLLfunc (GetAdaptersAddresses, 20, iphlpapi) LoadDLLfunc (GetIfEntry, 4, iphlpapi) -- cgit v1.2.3