Commit 6cfc011a authored by Damien Fouilleul's avatar Damien Fouilleul

- gnutls: use WASEWOULDBLOCK for EAGAIN

parent 3c9d9b2a
...@@ -186,11 +186,12 @@ static int gnutls_Error (vlc_object_t *obj, int val) ...@@ -186,11 +186,12 @@ static int gnutls_Error (vlc_object_t *obj, int val)
switch (val) switch (val)
{ {
case GNUTLS_E_AGAIN: case GNUTLS_E_AGAIN:
#if ! defined(WIN32) #if defined(WIN32)
WSASetLastError(WSAEWOULDBLOCK);
#else
errno = EAGAIN; errno = EAGAIN;
break;
#endif #endif
/* WinSock does not return EAGAIN, return EINTR instead */ break;
case GNUTLS_E_INTERRUPTED: case GNUTLS_E_INTERRUPTED:
#if defined(WIN32) #if defined(WIN32)
......
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