mongoose/src/net_lwip.h

21 lines
355 B
C
Raw Normal View History

2022-02-18 16:07:10 +08:00
#pragma once
#if defined(MG_ENABLE_LWIP) && MG_ENABLE_LWIP
2022-02-18 16:07:10 +08:00
#if defined(__GNUC__)
#include <sys/stat.h>
#include <sys/time.h>
#else
struct timeval {
time_t tv_sec;
long tv_usec;
};
#endif
#include <lwip/sockets.h>
#if LWIP_SOCKET != 1
// Sockets support disabled in LWIP by default
#error Set LWIP_SOCKET variable to 1 (in lwipopts.h)
#endif
#endif