diff options
Diffstat (limited to 'src/microhttpd/memorypool.c')
-rw-r--r-- | src/microhttpd/memorypool.c | 16 |
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) |