diff --git a/ctaocrypt/include/ctc_settings.h b/ctaocrypt/include/ctc_settings.h index 8950336dc..fb1889261 100644 --- a/ctaocrypt/include/ctc_settings.h +++ b/ctaocrypt/include/ctc_settings.h @@ -47,6 +47,9 @@ /* Uncomment next line if using lwip */ /* #define CYASSL_LWIP */ +/* Uncomment next line if building CyaSSL for a game console */ +/* #define CYASSL_GAME_BUILD */ + #if defined(USE_CYASSL_CONFIG) || defined(HAVE_CONFIG_H) #include "ctc_config.h" /* may not want global HAVE_CONFIG_H */ #endif @@ -81,6 +84,10 @@ #define NO_HC128 #endif +#ifdef CYASSL_GAME_BUILD + #define SIZEOF_LONG_LONG 8 +#endif + #ifdef MICRIUM #include "stdlib.h" diff --git a/include/cyassl_int.h b/include/cyassl_int.h index a486d3ffb..ac4249bf4 100644 --- a/include/cyassl_int.h +++ b/include/cyassl_int.h @@ -47,7 +47,11 @@ #endif #ifdef USE_WINDOWS_API - #include + #ifdef CYASSL_GAME_BUILD + #include "system/xtl.h" + #else + #include + #endif #elif defined(THREADX) #ifndef SINGLE_THREADED #include "tx_api.h" diff --git a/include/openssl/ssl.h b/include/openssl/ssl.h index e82a5d6bf..07476c3bf 100644 --- a/include/openssl/ssl.h +++ b/include/openssl/ssl.h @@ -656,7 +656,12 @@ CYASSL_API int CyaSSL_SetTmpDH(SSL*, unsigned char* p, int pSz, #ifndef _WIN32 #ifndef NO_WRITEV - #include + #if __PPU + #include + #include + #else + #include + #endif /* allow writev style writing */ CYASSL_API int CyaSSL_writev(SSL* ssl, const struct iovec* iov, int iovcnt);