Commit a246a016 authored by Stefan Weil's avatar Stefan Weil
Browse files

slirp: Fix non blocking connect for w32



Signed-off-by: default avatarStefan Weil <sw@weilnetz.de>
parent 805d8a67
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -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)));