mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
the same #ifdef { parsing problem..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2296 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
8996062276
commit
41e92b3062
@ -212,10 +212,11 @@ GIOChannel *net_connect_ip(IPADDR *ip, int port, IPADDR *my_ip)
|
||||
ret = connect(handle, &so.sa, SIZEOF_SOCKADDR(so));
|
||||
|
||||
#ifndef WIN32
|
||||
if (ret < 0 && errno != EINPROGRESS) {
|
||||
if (ret < 0 && errno != EINPROGRESS)
|
||||
#else
|
||||
if (ret < 0 && WSAGetLastError() != WSAEWOULDBLOCK) {
|
||||
if (ret < 0 && WSAGetLastError() != WSAEWOULDBLOCK)
|
||||
#endif
|
||||
{
|
||||
close(handle);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user