From d806134cbfa29e6e76208a020afdc91399e58de3 Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Fri, 15 Feb 2019 13:05:37 -0700 Subject: [PATCH] Update for newer versions of the TI compiler --- wolfcrypt/src/wc_port.c | 2 +- wolfssl/wolfcrypt/settings.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/wc_port.c b/wolfcrypt/src/wc_port.c index 8ad7390f6..ec0ff50b5 100644 --- a/wolfcrypt/src/wc_port.c +++ b/wolfcrypt/src/wc_port.c @@ -1675,7 +1675,7 @@ time_t mqx_time(time_t* timer) #endif /* FREESCALE_MQX || FREESCALE_KSDK_MQX */ -#if defined(WOLFSSL_TIRTOS) +#if defined(WOLFSSL_TIRTOS) && defined(USER_TIME) time_t XTIME(time_t * timer) { diff --git a/wolfssl/wolfcrypt/settings.h b/wolfssl/wolfcrypt/settings.h index e7fa29e85..8dd22804f 100644 --- a/wolfssl/wolfcrypt/settings.h +++ b/wolfssl/wolfcrypt/settings.h @@ -696,7 +696,8 @@ extern void uITRON4_free(void *p) ; #define NO_FILESYSTEM #define USE_CERT_BUFFERS_2048 #define NO_ERROR_STRINGS - #define USER_TIME + /* Uncomment this setting if your toolchain does not offer time.h header */ + /* #define USER_TIME */ #define HAVE_ECC #define HAVE_ALPN #define USE_WOLF_STRTOK /* use with HAVE_ALPN */