cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: unhappiness and sorrow with 7.10.4.pre4 on UX 11.11

From: Bjorn Reese <breese_at_mail1.stofanet.dk>
Date: Sat, 15 Mar 2003 01:01:15 +0000

Rick Jones wrote:

> lib503.c has the include of <sys/time.h> but still gets parm warnings
> for the select call at line 69:
[...]
> Looking at <sys/time.h> it appears that unless the
> _XOPEN_SOURCE_EXTENDED is set, that the pointers to the biytmasks are
> defined as int*

One wonders that this is still the default signature...

The following is an old workaround for that problem:

#if defined(hpux) || defined(__hpux)
# if !defined(_XOPEN_SOURCE_EXTENDED)
# define select(a,b,c,d,e) select((a),(int*)(b),(int*)(c),(int*)(d),(e))
# endif
#endif

-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
Received on 2003-03-15