libmicrohttpd

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

commit 78d30bd5827eeaffdfb5906a4afedb48868aceac
parent 9ec1b5df5e488ab1ab06dec156f1868fd32478f5
Author: ng0 <ng0@n0.is>
Date:   Thu, 25 Jul 2019 17:51:43 +0000

attempt fix

Diffstat:
Msrc/microhttpd/mhd_send.c | 26+-------------------------
Msrc/microhttpd/mhd_send.h | 2--
2 files changed, 1 insertion(+), 27 deletions(-)

diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c @@ -678,31 +678,7 @@ static int freebsd_sendfile_flags_; */ static int freebsd_sendfile_flags_thd_p_c_; #endif /* SF_FLAGS */ -/** - * Initialises static variables - */ -void -MHD_conn_init_static_ (void) -{ -/* FreeBSD 11 and later allow to specify read-ahead size - * and handles SF_NODISKIO differently. - * SF_FLAGS defined only on FreeBSD 11 and later. */ -#ifdef SF_FLAGS - long sys_page_size = sysconf (_SC_PAGESIZE); - if (0 > sys_page_size) - { /* Failed to get page size. */ - freebsd_sendfile_flags_ = SF_NODISKIO; - freebsd_sendfile_flags_thd_p_c_ = SF_NODISKIO; - } - else - { - freebsd_sendfile_flags_ = - SF_FLAGS((uint16_t)(MHD_SENFILE_CHUNK_ / sys_page_size), SF_NODISKIO); - freebsd_sendfile_flags_thd_p_c_ = - SF_FLAGS((uint16_t)(MHD_SENFILE_CHUNK_THR_P_C_ / sys_page_size), SF_NODISKIO); - } -#endif /* SF_FLAGS */ -} + #endif /* HAVE_FREEBSD_SENDFILE */ #if defined(_MHD_HAVE_SENDFILE) diff --git a/src/microhttpd/mhd_send.h b/src/microhttpd/mhd_send.h @@ -119,6 +119,4 @@ ssize_t sendfile_adapter (struct MHD_Connection *connection); #endif -void -MHD_conn_init_static_ (void); #endif /* MHD_SEND_H */