libmicrohttpd

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

commit 2525c5bc207ffe5607acc9d1ebb0472c09d52b45
parent aad43f23f0aa5cf997d9e880e2d78eefd9c6a221
Author: ng0 <ng0@n0.is>
Date:   Wed, 24 Jul 2019 10:08:07 +0000

fix errors.

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

diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c @@ -33,6 +33,29 @@ #include "mhd_send.h" /** + * sendfile() chuck size + */ +#define MHD_SENFILE_CHUNK_ (0x20000) + +/** + * sendfile() chuck size for thread-per-connection + */ +#define MHD_SENFILE_CHUNK_THR_P_C_ (0x200000) + +#ifdef HAVE_FREEBSD_SENDFILE +#ifdef SF_FLAGS +/** + * FreeBSD sendfile() flags + */ +static int freebsd_sendfile_flags_; + +/** + * FreeBSD sendfile() flags for thread-per-connection + */ +static int freebsd_sendfile_flags_thd_p_c_; +#endif /* SF_FLAGS */ + +/** * Set socket to nodelay, on or off. * * @param connection the MHD_Connection structure