mirror of
https://github.com/mirror/wget.git
synced 2025-03-13 11:20:19 +08:00
Fix Windows gnulib/c-ares incompatibility of select()
* src/host.c: Undef 'select' on Windows
This commit is contained in:
parent
528770ca8b
commit
53800415a9
@ -694,6 +694,13 @@ address_list_from_hostent (struct hostent *host)
|
||||
return al;
|
||||
}
|
||||
|
||||
/* Since GnuLib's select() (i.e. rpl_select()) cannot handle socket-numbers
|
||||
* returned from C-ares, we must use the original select() from Winsock.
|
||||
*/
|
||||
#ifdef WINDOWS
|
||||
#undef select
|
||||
#endif
|
||||
|
||||
static void
|
||||
wait_ares (ares_channel channel)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user