diff --git a/mongoose.h b/mongoose.h index 0438e821..82a06c62 100644 --- a/mongoose.h +++ b/mongoose.h @@ -210,8 +210,8 @@ static inline void *mg_calloc(int cnt, size_t size) { #define calloc(a, b) mg_calloc((a), (b)) #define free(a) vPortFree(a) #define malloc(a) pvPortMalloc(a) - #define gmtime_r(a, b) gmtime(a) +#define mkdir(a, b) (-1) #endif // MG_ARCH == MG_ARCH_FREERTOS_LWIP @@ -272,6 +272,7 @@ static inline void *mg_calloc(int cnt, size_t size) { #define calloc(a, b) mg_calloc((a), (b)) #define free(a) vPortFree(a) #define malloc(a) pvPortMalloc(a) +#define mkdir(a, b) (-1) #define gmtime_r(a, b) gmtime(a) diff --git a/src/arch_freertos_lwip.h b/src/arch_freertos_lwip.h index 4726ce74..0707250f 100644 --- a/src/arch_freertos_lwip.h +++ b/src/arch_freertos_lwip.h @@ -47,7 +47,7 @@ static inline void *mg_calloc(int cnt, size_t size) { #define calloc(a, b) mg_calloc((a), (b)) #define free(a) vPortFree(a) #define malloc(a) pvPortMalloc(a) - #define gmtime_r(a, b) gmtime(a) +#define mkdir(a, b) (-1) #endif // MG_ARCH == MG_ARCH_FREERTOS_LWIP diff --git a/src/arch_freertos_tcp.h b/src/arch_freertos_tcp.h index fe0dd4e4..4a465530 100644 --- a/src/arch_freertos_tcp.h +++ b/src/arch_freertos_tcp.h @@ -56,6 +56,7 @@ static inline void *mg_calloc(int cnt, size_t size) { #define calloc(a, b) mg_calloc((a), (b)) #define free(a) vPortFree(a) #define malloc(a) pvPortMalloc(a) +#define mkdir(a, b) (-1) #define gmtime_r(a, b) gmtime(a)