forked from wolfSSL/wolfssl
make up for MDK-ARM
This commit is contained in:
8
src/io.c
8
src/io.c
@ -124,6 +124,14 @@
|
|||||||
#define SOCKET_EPIPE EPIPE
|
#define SOCKET_EPIPE EPIPE
|
||||||
#define SOCKET_ECONNREFUSED RTCSERR_TCP_CONN_REFUSED
|
#define SOCKET_ECONNREFUSED RTCSERR_TCP_CONN_REFUSED
|
||||||
#define SOCKET_ECONNABORTED RTCSERR_TCP_CONN_ABORTED
|
#define SOCKET_ECONNABORTED RTCSERR_TCP_CONN_ABORTED
|
||||||
|
#elif defined(CYASSL_MDK_ARM)
|
||||||
|
#define SOCKET_EWOULDBLOCK SCK_EWOULDBLOCK
|
||||||
|
#define SOCKET_EAGAIN SCK_ELOCKED
|
||||||
|
#define SOCKET_ECONNRESET SCK_ECLOSED
|
||||||
|
#define SOCKET_EINTR SCK_ERROR
|
||||||
|
#define SOCKET_EPIPE SCK_ERROR
|
||||||
|
#define SOCKET_ECONNREFUSED SCK_ERROR
|
||||||
|
#define SOCKET_ECONNABORTED SCK_ERROR
|
||||||
#else
|
#else
|
||||||
#define SOCKET_EWOULDBLOCK EWOULDBLOCK
|
#define SOCKET_EWOULDBLOCK EWOULDBLOCK
|
||||||
#define SOCKET_EAGAIN EAGAIN
|
#define SOCKET_EAGAIN EAGAIN
|
||||||
|
@ -5315,9 +5315,7 @@ int CyaSSL_set_compression(CYASSL* ssl)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef USE_WINDOWS_API
|
#ifdef USE_WINDOWS_API
|
||||||
#define CloseSocket(s) closesocket(s)
|
|
||||||
#elif defined(CYASSL_MDK_ARM)
|
|
||||||
#define CloseSocket(s) closesocket(s)
|
#define CloseSocket(s) closesocket(s)
|
||||||
#else
|
#else
|
||||||
#define CloseSocket(s) close(s)
|
#define CloseSocket(s) close(s)
|
||||||
|
Reference in New Issue
Block a user