fixup! Sortix patches
This commit is contained in:
parent
658b89f5d8
commit
7b6c7de1fa
|
@ -672,7 +672,7 @@ static void try_connect(struct connection *c)
|
|||
#if defined(__aarch64__) && defined(__ILP32__)
|
||||
errno = EINPROGRESS; /* arm64 ilp32 bug */
|
||||
#endif
|
||||
rs = connect(s, (struct sockaddr *)(void *)&sa, sizeof sa);
|
||||
EINTRLOOP(rs, connect(s, (struct sockaddr *)(void *)&sa, sizeof sa));
|
||||
#ifdef SUPPORT_IPV6
|
||||
} else if (addr->af == AF_INET6) {
|
||||
struct sockaddr_in6 sa;
|
||||
|
@ -686,14 +686,14 @@ static void try_connect(struct connection *c)
|
|||
#if defined(__aarch64__) && defined(__ILP32__)
|
||||
errno = EINPROGRESS; /* arm64 ilp32 bug */
|
||||
#endif
|
||||
rs = connect(s, (struct sockaddr *)(void *)&sa, sizeof sa);
|
||||
EINTRLOOP(rs, connect(s, (struct sockaddr *)(void *)&sa, sizeof sa));
|
||||
#endif
|
||||
} else {
|
||||
rs = -1;
|
||||
errno = EINVAL;
|
||||
}
|
||||
if (rs) {
|
||||
if (errno != EALREADY && errno != EINPROGRESS && errno != EINTR) {
|
||||
if (errno != EALREADY && errno != EINPROGRESS) {
|
||||
#ifdef BEOS
|
||||
if (errno == EWOULDBLOCK) errno = ETIMEDOUT;
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue