mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-21 19:51:50 +00:00
Proper TLS handling for poll(). Make poll() default on linux
This commit is contained in:
1 parent
252e4715d4
commit
10596a8bdc
4 files changed
+38
-28
No files matched your search
+5
-1
@@ -418,6 +418,10 @@ extern int SockSet(SOCKET hSock, int Type, int Prop, void *pbuf, int size);
|
||||
|
||||
#define _DARWIN_UNLIMITED_SELECT 1 // No limit on file descriptors
|
||||
|
||||
#if !defined(MG_ENABLE_POLL) && defined(__linux__)
|
||||
#define MG_ENABLE_POLL 1
|
||||
#endif
|
||||
|
||||
#include <arpa/inet.h>
|
||||
#include <ctype.h>
|
||||
#include <dirent.h>
|
||||
@@ -436,7 +440,7 @@ extern int SockSet(SOCKET hSock, int Type, int Prop, void *pbuf, int size);
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#if defined(MG_ENABLE_POLL) && MG_ENABLE_POLL
|
||||
#if MG_ENABLE_POLL
|
||||
#include <poll.h>
|
||||
#else
|
||||
#include <sys/select.h>
|
||||
|
||||
Reference in new issue
Block a user