mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-20 19:41:58 +00:00
Integrate #1561 with some minor tweaks - add MG_ENABLE_POLL for poll() support
This commit is contained in:
1 parent
f72b27d1c1
commit
5b448ec7a6
5 files changed
+82
No files matched your search
@@ -436,7 +436,11 @@ extern int SockSet(SOCKET hSock, int Type, int Prop, void *pbuf, int size);
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#if MG_ENABLE_POLL
|
||||
#include <poll.h>
|
||||
#else
|
||||
#include <sys/select.h>
|
||||
#endif
|
||||
#include <sys/socket.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/time.h>
|
||||
@@ -578,6 +582,10 @@ int sscanf(const char *, const char *, ...);
|
||||
#define MG_ENABLE_MIP 0
|
||||
#endif
|
||||
|
||||
#ifndef MG_ENABLE_POLL
|
||||
#define MG_ENABLE_POLL 0
|
||||
#endif
|
||||
|
||||
#ifndef MG_ENABLE_FATFS
|
||||
#define MG_ENABLE_FATFS 0
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user