mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-02-19 00:39:46 +00:00
Fixes platform time_t abstraction
Fixes platform abstraction in error.c and the file that it's generated from as well as DTLS samples.
This commit is contained in:
@@ -237,6 +237,8 @@ int mbedtls_platform_set_exit( void (*exit_func)( int status ) );
|
||||
#if defined(MBEDTLS_PLATFORM_TIME_TYPE_MACRO)
|
||||
typedef MBEDTLS_PLATFORM_TIME_TYPE_MACRO mbedtls_time_t;
|
||||
#else
|
||||
/* For time_t */
|
||||
#include <time.h>
|
||||
typedef time_t mbedtls_time_t;
|
||||
#endif /* MBEDTLS_PLATFORM_TIME_TYPE_MACRO */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user