diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-04-17 20:41:26 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-04-17 20:42:28 +0300 |
commit | d928d17156b9fd5c886a66230ba934938b4dc764 (patch) | |
tree | 0cb71c97fcac879bd5569a75c072a8a20641c5b5 /src/microhttpd/response.c | |
parent | 6c985f4adcb5b71c2b70a17de0a99468090bfb0d (diff) | |
download | libmicrohttpd-d928d17156b9fd5c886a66230ba934938b4dc764.tar.gz libmicrohttpd-d928d17156b9fd5c886a66230ba934938b4dc764.zip |
Fixed build broken by 6c985f4adcb5b71c2b70a17de0a99468090bfb0d
Diffstat (limited to 'src/microhttpd/response.c')
-rw-r--r-- | src/microhttpd/response.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c index 9f328eef..3e93dc80 100644 --- a/src/microhttpd/response.c +++ b/src/microhttpd/response.c | |||
@@ -57,6 +57,19 @@ | |||
57 | 57 | ||
58 | 58 | ||
59 | /** | 59 | /** |
60 | * Size of single file read operation for | ||
61 | * file-backed responses. | ||
62 | */ | ||
63 | #ifndef MHD_FILE_READ_BLOCK_SIZE | ||
64 | #ifdef _WIN32 | ||
65 | #define MHD_FILE_READ_BLOCK_SIZE 16384 /* 16k */ | ||
66 | #else /* _WIN32 */ | ||
67 | #define MHD_FILE_READ_BLOCK_SIZE 4096 /* 4k */ | ||
68 | #endif /* _WIN32 */ | ||
69 | #endif /* !MHD_FD_BLOCK_SIZE */ | ||
70 | |||
71 | |||
72 | /** | ||
60 | * Add a header or footer line to the response. | 73 | * Add a header or footer line to the response. |
61 | * | 74 | * |
62 | * @param response response to add a header to | 75 | * @param response response to add a header to |