[PATCH 2/5] Link against libdnsapi to avoid undefined reference

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Mar 21 20:34:00 GMT 2016


On Mar 21 16:19, Peter Foley wrote:
> On Mon, Mar 21, 2016 at 3:52 PM, Corinna Vinschen
> <corinna-cygwin@cygwin.com> wrote:
> > While you're at it, ideally we make ourselves independent of the MingW
> > header version and use DnsFree directly, replacing DnsRecordListFree
> > in autoload.cc and libc/minires-os-if.c, no?
> 
> Hmm, it isn't immediately obvious as to the meaning of the 2nd (n)
> parameter to LoadDLLfunc()
> How would I go about finding the correct value for the DnsFree function?
> Function documentation is at
> https://msdn.microsoft.com/en-us/library/windows/desktop/ms682011(v=vs.85).aspx

Number of arguments multiplied by 4.  That's just for the 32 bit
WINAPI.  LoadDLLfunc (DnsFree, 8, dnsapi) should do it.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20160321/20f98709/attachment.sig>


More information about the Cygwin-patches mailing list