diff options
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index a2f7ec7f..3d0b5878 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -34,6 +34,7 @@ | |||
34 | #include "autoinit_funcs.h" | 34 | #include "autoinit_funcs.h" |
35 | #include "mhd_mono_clock.h" | 35 | #include "mhd_mono_clock.h" |
36 | #include "mhd_locks.h" | 36 | #include "mhd_locks.h" |
37 | #include "mhd_sockets.h" | ||
37 | 38 | ||
38 | #if HAVE_SEARCH_H | 39 | #if HAVE_SEARCH_H |
39 | #include <search.h> | 40 | #include <search.h> |
@@ -46,18 +47,10 @@ | |||
46 | #include <gcrypt.h> | 47 | #include <gcrypt.h> |
47 | #endif | 48 | #endif |
48 | 49 | ||
49 | #if defined(HAVE_POLL_H) && defined(HAVE_POLL) | ||
50 | #include <poll.h> | ||
51 | #endif | ||
52 | |||
53 | #ifdef LINUX | 50 | #ifdef LINUX |
54 | #include <sys/sendfile.h> | 51 | #include <sys/sendfile.h> |
55 | #endif | 52 | #endif |
56 | 53 | ||
57 | #ifndef _MHD_FD_SETSIZE_IS_DEFAULT | ||
58 | #include "sysfdsetsize.h" | ||
59 | #endif /* !_MHD_FD_SETSIZE_IS_DEFAULT */ | ||
60 | |||
61 | #ifdef _WIN32 | 54 | #ifdef _WIN32 |
62 | #ifndef WIN32_LEAN_AND_MEAN | 55 | #ifndef WIN32_LEAN_AND_MEAN |
63 | #define WIN32_LEAN_AND_MEAN 1 | 56 | #define WIN32_LEAN_AND_MEAN 1 |
@@ -79,13 +72,6 @@ | |||
79 | */ | 72 | */ |
80 | #define MHD_POOL_SIZE_DEFAULT (32 * 1024) | 73 | #define MHD_POOL_SIZE_DEFAULT (32 * 1024) |
81 | 74 | ||
82 | #ifdef TCP_FASTOPEN | ||
83 | /** | ||
84 | * Default TCP fastopen queue size. | ||
85 | */ | ||
86 | #define MHD_TCP_FASTOPEN_QUEUE_SIZE_DEFAULT 10 | ||
87 | #endif | ||
88 | |||
89 | /** | 75 | /** |
90 | * Print extra messages with reasons for closing | 76 | * Print extra messages with reasons for closing |
91 | * sockets? (only adds non-error messages). | 77 | * sockets? (only adds non-error messages). |
@@ -104,26 +90,6 @@ | |||
104 | #endif | 90 | #endif |
105 | #endif | 91 | #endif |
106 | 92 | ||
107 | #ifdef SOCK_CLOEXEC | ||
108 | #define MAYBE_SOCK_CLOEXEC SOCK_CLOEXEC | ||
109 | #else /* ! SOCK_CLOEXEC */ | ||
110 | #define MAYBE_SOCK_CLOEXEC 0 | ||
111 | #endif /* ! SOCK_CLOEXEC */ | ||
112 | |||
113 | #ifdef HAVE_SOCK_NONBLOCK | ||
114 | #define MAYBE_SOCK_NONBLOCK SOCK_NONBLOCK | ||
115 | #else /* ! HAVE_SOCK_NONBLOCK */ | ||
116 | #define MAYBE_SOCK_NONBLOCK 0 | ||
117 | #endif /* ! HAVE_SOCK_NONBLOCK */ | ||
118 | |||
119 | #if HAVE_ACCEPT4+0 != 0 && (defined(HAVE_SOCK_NONBLOCK) || defined(SOCK_CLOEXEC)) | ||
120 | #define USE_ACCEPT4 1 | ||
121 | #endif | ||
122 | |||
123 | #if defined(HAVE_EPOLL_CREATE1) && defined(EPOLL_CLOEXEC) | ||
124 | #define USE_EPOLL_CREATE1 1 | ||
125 | #endif /* HAVE_EPOLL_CREATE1 && EPOLL_CLOEXEC */ | ||
126 | |||
127 | 93 | ||
128 | /** | 94 | /** |
129 | * Default implementation of the panic function, | 95 | * Default implementation of the panic function, |