Subject: Re: [c-ares] Include sys/time.h for fd_set. (#6)

Re: [c-ares] Include sys/time.h for fd_set. (#6)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 18 Jun 2011 00:05:23 +0200 (CEST)

On Wed, 15 Jun 2011, bnoordhuis wrote:

> Fixes 'ares.h:387: error: expected declaration specifiers or ‘...’ before
> ‘fd_set’' when compiling with `gcc -ansi`.

sys/time.h is however not good enough for fd_set on all platforms. In the curl
project we have a fairly complicated #if series to make sure we include
sys/select.h for those platforms that need that for select.

I'll look into copying that logic into the c-ares header file.

-- 
  / daniel.haxx.se
Received on 2011-06-18