sim-card
/
qemu
Archived
10
0
Fork 0

Windows sockets like to be different. Inspired by a patch from Alex Consul.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2535 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
ths 2007-03-25 15:58:03 +00:00
parent 62724a3773
commit f5b122688b
1 changed files with 8 additions and 0 deletions

8
vl.c
View File

@ -2850,6 +2850,10 @@ static CharDriverState *qemu_chr_open_tcp(const char *host_str,
if (err == EINTR || err == EWOULDBLOCK) {
} else if (err == EINPROGRESS) {
break;
#ifdef _WIN32
} else if (err == WSAEALREADY) {
break;
#endif
} else {
goto fail;
}
@ -4017,6 +4021,10 @@ static int net_socket_connect_init(VLANState *vlan, const char *host_str)
if (err == EINTR || err == EWOULDBLOCK) {
} else if (err == EINPROGRESS) {
break;
#ifdef _WIN32
} else if (err == WSAEALREADY) {
break;
#endif
} else {
perror("connect");
closesocket(fd);