diff --git a/ports/stm32/posix_helpers.c b/ports/stm32/posix_helpers.c index b72c4ff9d6671..4442ea57278b8 100644 --- a/ports/stm32/posix_helpers.c +++ b/ports/stm32/posix_helpers.c @@ -30,6 +30,8 @@ #include "py/mphal.h" #include "py/gc.h" +typedef mp_uint_t time_t; + // Functions for external libs like axTLS, BerkeleyDB, etc. void *malloc(size_t size) {