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:
Michael Vetter
2020-01-22 11:45:05 +01:00
committed by Dmitry Podgorny
parent 178f566ae2
commit 1b10e8f987

View File

@@ -21,6 +21,14 @@
#ifdef HAVE_CARES
#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 */
#include <string.h> /* strncpy */