libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit b98f757af86d20eb63a9156768bcbc24dc237afc
parent 2abfb2ccca43a2db29de5c76b4338eb929bd284b
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Wed, 12 Jun 2019 18:51:27 +0300

memorypool: further narrow down includes

Diffstat:
Msrc/microhttpd/memorypool.c | 16+++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/memorypool.c b/src/microhttpd/memorypool.c @@ -25,8 +25,22 @@ * @author Karlson2k (Evgeny Grin) */ #include "memorypool.h" -#include "internal.h" +#include <stdlib.h> +#include <string.h> #include "mhd_assert.h" +#if HAVE_SYS_MMAN_H +#include <sys/mman.h> +#endif +#ifdef _WIN32 +#include <memoryapi.h> +#endif + +#ifndef MHD_YES +#define MHD_YES 1 +#endif +#ifndef MHD_NO +#define MHD_NO 0 +#endif /* define MAP_ANONYMOUS for Mac OS X */ #if defined(MAP_ANON) && !defined(MAP_ANONYMOUS)