From: Bjorn Reese (breese@mail1.stofanet.dk)
Date: Mon Oct 09 2000 - 09:32:16 EDT
mikelima wrote:
> The necessary change is the one at line 379;
> HPUX defined EWOULDBLOCK; however apparently it does not use it in this case;
> It returns instead EAGAIN. I don't know if this change can break other
> platforms; I tested it (briefly) on hpux and linux.
FYI, the patches are reversed.
On some platforms EAGAIN isn't defined, and on others it is equal to
EWOULDBLOCK. Instead I suggest using something like this:
if (ctxt->last == -1) {
switch (errno) { /* or rather socket_errno, which btw should be
* defined as a function to prevent assignments */
case EINPROGRESS:
case EWOULDBLOCK:
#if defined(EAGAIN) && EAGAIN != EWOULDBLOCK
case EAGAIN:
#endif
To make the socket code work on older versions of HP-UX, I also suggest
that we also add the following to at the top
#if defined(hpux) || defined(__hpux)
#define select(a,b,c,d,e) select((a),(int*)(b),(int*)(c),(int*)(d),(e))
#endif
PS: Sorry about not sending patches, but I don't have access to our
HP-UX machines today.
---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net
This archive was generated by hypermail 2b29 : Mon Oct 09 2000 - 09:43:20 EDT