This is the mail archive of the
cygwin-patches@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: [egorovv@mailandnews.com: inet_network]
DJ Delorie <dj@delorie.com> writes:
> > LoadDLLFunc should actually abort the process if it can't load the function.
>
> Then we shouldn't use it for an undocumented function, which may not
> be available in all versions of winsock.
First, I'll try to check as much as possible wsock32.dll versions as possible
-- especially the earliest one -- to see if any of them are missing this entry.
Next, it's certanly possible to use raw LoadLibrary/GetProcAddress API to achieve
the same thing plus gracefuuly handling the worst case.
One more way is to borow it -- glibc contains quite compact and independent one --
though I'm not quite sure about cygwin policy in this respect.
-----
Regards,
Vadim