forked from wolfSSL/wolfssl
Improved support for PicoTCP on embedded devices
This commit is contained in:
2
src/io.c
2
src/io.c
@ -83,7 +83,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#if !(defined(DEVKITPRO) || defined(HAVE_RTP_SYS) || defined(EBSNET)) \
|
#if !(defined(DEVKITPRO) || defined(HAVE_RTP_SYS) || defined(EBSNET)) \
|
||||||
|| defined(WOLFSSL_PICOTCP)
|
&& !(defined(WOLFSSL_PICOTCP))
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
|
@ -923,7 +923,7 @@ WOLFSSL_API int wolfSSL_make_eap_keys(WOLFSSL*, void* key, unsigned int len,
|
|||||||
#ifdef __PPU
|
#ifdef __PPU
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#elif !defined(WOLFSSL_MDK_ARM) && !defined(WOLFSSL_IAR_ARM)
|
#elif !defined(WOLFSSL_MDK_ARM) && !defined(WOLFSSL_IAR_ARM) && !defined(WOLFSSL_PICOTCP)
|
||||||
#include <sys/uio.h>
|
#include <sys/uio.h>
|
||||||
#endif
|
#endif
|
||||||
/* allow writev style writing */
|
/* allow writev style writing */
|
||||||
|
@ -244,10 +244,13 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef WOLFSSL_PICOTCP
|
#ifdef WOLFSSL_PICOTCP
|
||||||
#define errno pico_err
|
#ifndef errno
|
||||||
|
#define errno pico_err
|
||||||
|
#endif
|
||||||
#include "pico_defines.h"
|
#include "pico_defines.h"
|
||||||
#include "pico_stack.h"
|
#include "pico_stack.h"
|
||||||
#include "pico_constants.h"
|
#include "pico_constants.h"
|
||||||
|
#include "pico_protocol.h"
|
||||||
#define CUSTOM_RAND_GENERATE pico_rand
|
#define CUSTOM_RAND_GENERATE pico_rand
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user