1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-21 14:00:51 +03:00

VMS port of libssh2; changes in the libssh2 common code

This commit is contained in:
Jose Baars
2010-04-25 19:57:45 +02:00
committed by Daniel Stenberg
parent d4edb0b9c3
commit c511177d39
4 changed files with 36 additions and 8 deletions

View File

@@ -96,6 +96,11 @@ _libssh2_recv(libssh2_socket_t socket, void *buffer, size_t length, int flags)
#ifdef WIN32
if (rc < 0 )
errno = wsa2errno();
#endif
#ifdef __VMS
if (rc < 0 ){
if ( errno == EWOULDBLOCK ) errno = EAGAIN;
}
#endif
return rc;
}
@@ -115,6 +120,11 @@ _libssh2_send(libssh2_socket_t socket, const void *buffer, size_t length, int fl
#ifdef WIN32
if (rc < 0 )
errno = wsa2errno();
#endif
#ifdef VMS
if (rc < 0 ){
if ( errno == EWOULDBLOCK ) errno = EAGAIN;
}
#endif
return rc;
}