libmicrohttpd

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

commit d928d17156b9fd5c886a66230ba934938b4dc764
parent 6c985f4adcb5b71c2b70a17de0a99468090bfb0d
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Wed, 17 Apr 2019 20:41:26 +0300

Fixed build broken by 6c985f4adcb5b71c2b70a17de0a99468090bfb0d

Diffstat:
Msrc/microhttpd/response.c | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c @@ -57,6 +57,19 @@ /** + * Size of single file read operation for + * file-backed responses. + */ +#ifndef MHD_FILE_READ_BLOCK_SIZE +#ifdef _WIN32 +#define MHD_FILE_READ_BLOCK_SIZE 16384 /* 16k */ +#else /* _WIN32 */ +#define MHD_FILE_READ_BLOCK_SIZE 4096 /* 4k */ +#endif /* _WIN32 */ +#endif /* !MHD_FD_BLOCK_SIZE */ + + +/** * Add a header or footer line to the response. * * @param response response to add a header to