slirp: Fix non blocking connect for w32
PATCH 1/1 slirp: Fix non blocking connect for w32
Signed-off-by Stefan Weil <[email protected]>
---
This is a hack to fix networking for latest git master and stable.
Regards
Stefan
slirp/tcp_input.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
slirp/tcp_input.c +7 -1
@@ -584,7 +584,13 @@ findso: goto cont_input; } -if ((tcp_fconnect (so) ==-1 ) && (errno !=EINPROGRESS ) && (errno !=EWOULDBLOCK )) { +if ((tcp_fconnect (so) ==-1 ) && +#if defined(_WIN32) + socket_error() != WSAEWOULDBLOCK +#else + (errno != EINPROGRESS) && (errno != EWOULDBLOCK) +#endif + ) {u_char code=ICMP_UNREACH_NET ;DEBUG_MISC ((dfd," tcp fconnect errno = %d-%s\n" , errno,strerror (errno)));
Signature · 1 line
2.1.4