Improved support for PicoTCP on embedded devices

This commit is contained in:
Daniele Lacamera
2015-04-23 12:35:05 +02:00
parent 1e9647023c
commit 96bb6e8cd7
3 changed files with 6 additions and 3 deletions

View File

@ -83,7 +83,7 @@
#endif
#include <fcntl.h>
#if !(defined(DEVKITPRO) || defined(HAVE_RTP_SYS) || defined(EBSNET)) \
|| defined(WOLFSSL_PICOTCP)
&& !(defined(WOLFSSL_PICOTCP))
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>

View File

@ -923,7 +923,7 @@ WOLFSSL_API int wolfSSL_make_eap_keys(WOLFSSL*, void* key, unsigned int len,
#ifdef __PPU
#include <sys/types.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>
#endif
/* allow writev style writing */

View File

@ -244,10 +244,13 @@
#endif
#ifdef WOLFSSL_PICOTCP
#define errno pico_err
#ifndef errno
#define errno pico_err
#endif
#include "pico_defines.h"
#include "pico_stack.h"
#include "pico_constants.h"
#include "pico_protocol.h"
#define CUSTOM_RAND_GENERATE pico_rand
#endif