mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-13 17:00:19 +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
@@ -4,6 +4,10 @@
|
||||
|
||||
#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>
|
||||
@@ -22,7 +26,7 @@
|
||||
#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