aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-07-24 10:08:07 +0000
committerng0 <ng0@n0.is>2019-07-24 10:08:07 +0000
commit2525c5bc207ffe5607acc9d1ebb0472c09d52b45 (patch)
tree01a9720e70a7572fd10ebafd1d63450742b76dcb /src/microhttpd
parentaad43f23f0aa5cf997d9e880e2d78eefd9c6a221 (diff)
downloadlibmicrohttpd-2525c5bc207ffe5607acc9d1ebb0472c09d52b45.tar.gz
libmicrohttpd-2525c5bc207ffe5607acc9d1ebb0472c09d52b45.zip
fix errors.
Diffstat (limited to 'src/microhttpd')
-rw-r--r--src/microhttpd/mhd_send.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index ee32a868..efb6fedd 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -33,6 +33,29 @@
33#include "mhd_send.h" 33#include "mhd_send.h"
34 34
35/** 35/**
36 * sendfile() chuck size
37 */
38#define MHD_SENFILE_CHUNK_ (0x20000)
39
40/**
41 * sendfile() chuck size for thread-per-connection
42 */
43#define MHD_SENFILE_CHUNK_THR_P_C_ (0x200000)
44
45#ifdef HAVE_FREEBSD_SENDFILE
46#ifdef SF_FLAGS
47/**
48 * FreeBSD sendfile() flags
49 */
50static int freebsd_sendfile_flags_;
51
52/**
53 * FreeBSD sendfile() flags for thread-per-connection
54 */
55static int freebsd_sendfile_flags_thd_p_c_;
56#endif /* SF_FLAGS */
57
58/**
36 * Set socket to nodelay, on or off. 59 * Set socket to nodelay, on or off.
37 * 60 *
38 * @param connection the MHD_Connection structure 61 * @param connection the MHD_Connection structure