mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
#1591: fixed macro control for MDK4
This commit is contained in:
6
src/io.c
6
src/io.c
@@ -62,14 +62,14 @@
|
|||||||
#elif defined(FREESCALE_KSDK_MQX)
|
#elif defined(FREESCALE_KSDK_MQX)
|
||||||
#include <rtcs.h>
|
#include <rtcs.h>
|
||||||
#elif defined(WOLFSSL_MDK_ARM) || defined(WOLFSSL_KEIL_TCP_NET)
|
#elif defined(WOLFSSL_MDK_ARM) || defined(WOLFSSL_KEIL_TCP_NET)
|
||||||
#if defined(WOLFSSL_MDK5) || defined(WOLFSSL_KEIL_TCP_NET)
|
#if !defined(WOLFSSL_MDK_ARM)
|
||||||
#include "cmsis_os.h"
|
#include "cmsis_os.h"
|
||||||
|
#include "rl_net.h"
|
||||||
#else
|
#else
|
||||||
#include <rtl.h>
|
#include <rtl.h>
|
||||||
#endif
|
#endif
|
||||||
#include "errno.h"
|
#include "errno.h"
|
||||||
#define SOCKET_T int
|
#define SOCKET_T int
|
||||||
#include "rl_net.h"
|
|
||||||
#elif defined(WOLFSSL_TIRTOS)
|
#elif defined(WOLFSSL_TIRTOS)
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#elif defined(FREERTOS_TCP)
|
#elif defined(FREERTOS_TCP)
|
||||||
@@ -153,7 +153,7 @@
|
|||||||
#define SOCKET_ECONNABORTED NIO_ECONNABORTED
|
#define SOCKET_ECONNABORTED NIO_ECONNABORTED
|
||||||
#endif
|
#endif
|
||||||
#elif defined(WOLFSSL_MDK_ARM)|| defined(WOLFSSL_KEIL_TCP_NET)
|
#elif defined(WOLFSSL_MDK_ARM)|| defined(WOLFSSL_KEIL_TCP_NET)
|
||||||
#if defined(WOLFSSL_MDK5)|| defined(WOLFSSL_KEIL_TCP_NET)
|
#if !defined(WOLFSSL_MDK_ARM)
|
||||||
#define SOCKET_EWOULDBLOCK BSD_ERROR_WOULDBLOCK
|
#define SOCKET_EWOULDBLOCK BSD_ERROR_WOULDBLOCK
|
||||||
#define SOCKET_EAGAIN BSD_ERROR_LOCKED
|
#define SOCKET_EAGAIN BSD_ERROR_LOCKED
|
||||||
#define SOCKET_ECONNRESET BSD_ERROR_CLOSED
|
#define SOCKET_ECONNRESET BSD_ERROR_CLOSED
|
||||||
|
Reference in New Issue
Block a user