From fd84109c1d528c10c232d79218b0a90a66c19b72 Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Thu, 21 Mar 2024 13:57:10 -0300 Subject: [PATCH] Zephyr fcntl --- mongoose.h | 10 +++++++++- src/arch_zephyr.h | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/mongoose.h b/mongoose.h index 47392d57..6e2ae9ab 100644 --- a/mongoose.h +++ b/mongoose.h @@ -522,7 +522,7 @@ typedef int socklen_t; #include #include -#include +#include #include #include #include @@ -3080,6 +3080,14 @@ struct mg_tcpip_driver_tm4c_data { #endif + +#if MG_ENABLE_TCPIP && defined(MG_ENABLE_DRIVER_W5500) && MG_ENABLE_DRIVER_W5500 + +#undef MG_ENABLE_TCPIP_DRIVER_INIT +#define MG_ENABLE_TCPIP_DRIVER_INIT 0 + +#endif + #ifdef __cplusplus } #endif diff --git a/src/arch_zephyr.h b/src/arch_zephyr.h index 23981287..dc020319 100644 --- a/src/arch_zephyr.h +++ b/src/arch_zephyr.h @@ -6,7 +6,7 @@ #include #include -#include +#include #include #include #include