Merge pull request #68 from tass-belgium/master

Improved support for PicoTCP on embedded devices
This commit is contained in:
Chris Conlon 2015-05-26 13:47:45 -06:00
commit b4a6ed1d7f
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

@ -927,7 +927,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