Commit 4b77d0a9 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Forward port of 'Telnet: fix win32 work'.

Should work, but not tested yet.
parent 2edd4c9c
......@@ -373,6 +373,12 @@ static void Run( intf_thread_t *p_intf )
cl->i_mode + 2 );
}
#ifdef WIN32
if( i_recv <= 0 && WSAGetLastError() == WSAEWOULDBLOCK )
{
errno = EAGAIN;
}
#endif
if (i_recv <= 0 && ( end || errno != EAGAIN ) )
goto drop;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment