Fix Windows gnulib/c-ares incompatibility of select()

* src/host.c: Undef 'select' on Windows
This commit is contained in:
Gisle Vanem 2016-04-17 14:11:32 +02:00 committed by Tim Rühsen
parent 528770ca8b
commit 53800415a9

View File

@ -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)
{