resolver: include headers for select(2)
C-ares implementation uses select(2) but doesn't include required headers. Fixes #149.
This commit is contained in:
committed by
Dmitry Podgorny
parent
178f566ae2
commit
1b10e8f987
@@ -21,6 +21,14 @@
|
|||||||
|
|
||||||
#ifdef HAVE_CARES
|
#ifdef HAVE_CARES
|
||||||
#include <ares.h>
|
#include <ares.h>
|
||||||
|
/* for select(2) */
|
||||||
|
#ifdef _WIN32
|
||||||
|
#include <winsock2.h>
|
||||||
|
#else /* _WIN32 */
|
||||||
|
#include <sys/time.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#endif /* !_WIN32 */
|
||||||
#endif /* HAVE_CARES */
|
#endif /* HAVE_CARES */
|
||||||
|
|
||||||
#include <string.h> /* strncpy */
|
#include <string.h> /* strncpy */
|
||||||
|
|||||||
Reference in New Issue
Block a user