aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2019-06-12 18:51:27 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2019-06-12 18:51:27 +0300
commitb98f757af86d20eb63a9156768bcbc24dc237afc (patch)
treebdfbeae9b456f716bd5650554db7d6ea007a4621
parent2abfb2ccca43a2db29de5c76b4338eb929bd284b (diff)
downloadlibmicrohttpd-b98f757af86d20eb63a9156768bcbc24dc237afc.tar.gz
libmicrohttpd-b98f757af86d20eb63a9156768bcbc24dc237afc.zip
memorypool: further narrow down includes
-rw-r--r--src/microhttpd/memorypool.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/microhttpd/memorypool.c b/src/microhttpd/memorypool.c
index 415b8aa5..63acb841 100644
--- a/src/microhttpd/memorypool.c
+++ b/src/microhttpd/memorypool.c
@@ -25,8 +25,22 @@
25 * @author Karlson2k (Evgeny Grin) 25 * @author Karlson2k (Evgeny Grin)
26 */ 26 */
27#include "memorypool.h" 27#include "memorypool.h"
28#include "internal.h" 28#include <stdlib.h>
29#include <string.h>
29#include "mhd_assert.h" 30#include "mhd_assert.h"
31#if HAVE_SYS_MMAN_H
32#include <sys/mman.h>
33#endif
34#ifdef _WIN32
35#include <memoryapi.h>
36#endif
37
38#ifndef MHD_YES
39#define MHD_YES 1
40#endif
41#ifndef MHD_NO
42#define MHD_NO 0
43#endif
30 44
31/* define MAP_ANONYMOUS for Mac OS X */ 45/* define MAP_ANONYMOUS for Mac OS X */
32#if defined(MAP_ANON) && !defined(MAP_ANONYMOUS) 46#if defined(MAP_ANON) && !defined(MAP_ANONYMOUS)