Merge pull request #3391 from cesanta/lwipdoze

fix lwIP redefinition of nfds_t
This commit is contained in:
Sergio R. Caprile authored and GitHub committed 2026-01-05 08:48:06 -03:00
commit 69936ac9f6
2 files changed
+8 -2

No files matched your search

+4 -1
View File
@@ -651,7 +651,10 @@ typedef enum { false = 0, true = 1 } bool;
#endif
#endif
typedef unsigned long nfds_t;
#if defined(MG_ENABLE_POLL) && MG_ENABLE_POLL && (!defined(MG_ENABLE_LWIP) || !MG_ENABLE_LWIP)
typedef unsigned long nfds_t; // see #3388
#endif
#if defined(_MSC_VER)
#if MG_ENABLE_WINSOCK
#pragma comment(lib, "ws2_32.lib")
+4 -1
View File
@@ -110,7 +110,10 @@ typedef enum { false = 0, true = 1 } bool;
#endif
#endif
typedef unsigned long nfds_t;
#if defined(MG_ENABLE_POLL) && MG_ENABLE_POLL && (!defined(MG_ENABLE_LWIP) || !MG_ENABLE_LWIP)
typedef unsigned long nfds_t; // see #3388
#endif
#if defined(_MSC_VER)
#if MG_ENABLE_WINSOCK
#pragma comment(lib, "ws2_32.lib")