curl-library
Re: ares: fd_set on AIX
Date: Mon, 23 Feb 2004 16:44:53 +0100
[Sorry for the late feedback, my main computer's power supply broke down]
On Feb 21, 15:47, Daniel Stenberg wrote:
>I've noticed how the ares build fails on AIX:
>
> http://curl.haxx.se/auto/log.cgi?id=20040221115719-20406
>
>I guess this depends on the fd_set typedef being in a different include file
>than what is currently being included.
>
>Tor (or anyone else with AIX), can you see if including <sys/select.h> in
>ares.h helps fixing it?
Some like this? Yes, that would fix it. I have been holding back on a patch
for this because I was thinking of doing it the ./configure way like it's
done in lib and src, i.e. with HAVE_SYS_SELECT_H wrappers.
On the other hand, the latest POSIX demands that one should always include
<sys/select.h> for anything select() (thus also for fd_set), so should it
really be necessary with wrappers for e.g. sys/types.h and sys/select.h?
Or are there some curl-supported platforms without these files?
-Tor
(completely unrelated: The CVS as of 15:15 GMT today hangs in test 127,
on AIX at least)
Index: ares/ares.h
===================================================================
RCS file: /repository/curl/ares/ares.h,v
retrieving revision 1.4
diff -u -r1.4 ares.h
--- ares/ares.h 23 Feb 2004 07:52:20 -0000 1.4
+++ ares/ares.h 23 Feb 2004 15:14:50 -0000
@@ -19,6 +19,7 @@
#define ARES__H
#include <sys/types.h>
+#include <sys/select.h>
#ifdef WIN32
#include <winsock.h>
Received on 2004-02-23