Fix freertos-tcp build

This commit is contained in:
Sergey Lyubka 2022-06-29 19:39:36 +01:00
parent d266f822ca
commit 2536865c4d
2 changed files with 2 additions and 0 deletions

View File

@ -258,6 +258,7 @@ static inline void *mg_calloc(int cnt, size_t size) {
#define closesocket(x) FreeRTOS_closesocket(x)
#define gethostbyname(x) FreeRTOS_gethostbyname(x)
#define getsockname(a, b, c) (-1)
#define getpeername(a, b, c) 0
// Re-route calloc/free to the FreeRTOS's functions, don't use stdlib
static inline void *mg_calloc(int cnt, size_t size) {

View File

@ -46,6 +46,7 @@
#define closesocket(x) FreeRTOS_closesocket(x)
#define gethostbyname(x) FreeRTOS_gethostbyname(x)
#define getsockname(a, b, c) (-1)
#define getpeername(a, b, c) 0
// Re-route calloc/free to the FreeRTOS's functions, don't use stdlib
static inline void *mg_calloc(int cnt, size_t size) {