Let lwIP and FreeRTOS build on Keil

This commit is contained in:
Sergio R. Caprile committed 2023-03-21 12:09:00 -03:00
1 parent b2ae517dac
commit ba872217d7
4 files changed
+38 -12

No files matched your search

+11 -3
View File
@@ -1,8 +1,17 @@
#pragma once
#if defined(MG_ENABLE_LWIP) && MG_ENABLE_LWIP
#if defined(__GNUC__)
#if defined(__GNUC__) && !defined(__ARMCC_VERSION)
#include <sys/stat.h>
#endif
struct timeval;
#include <lwip/sockets.h>
#if !LWIP_TIMEVAL_PRIVATE
#if defined(__GNUC__) && !defined(__ARMCC_VERSION) // armclang sets both
#include <sys/time.h>
#else
struct timeval {
@@ -10,8 +19,7 @@ struct timeval {
long tv_usec;
};
#endif
#include <lwip/sockets.h>
#endif
#if LWIP_SOCKET != 1
// Sockets support disabled in LWIP by default