@jubalh , please, move includes under #ifdef HAVE_CARES, because select() is used only for c-ares implementation. In select(2) manual I see:
/* According to POSIX.1-2001, POSIX.1-2008 */
#include <sys/select.h>
/* According to earlier standards */
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
So <time.h> is not needed as far as I understand. Please, use those 3 includes for earlier standards for non-windows platforms.
@jubalh , please, move includes under
#ifdef HAVE_CARES
, becauseselect()
is used only for c-ares implementation. Inselect(2)
manual I see:So
<time.h>
is not needed as far as I understand. Please, use those 3 includes for earlier standards for non-windows platforms.