aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-07-25 17:49:05 +0000
committerng0 <ng0@n0.is>2019-07-25 17:49:05 +0000
commit9ec1b5df5e488ab1ab06dec156f1868fd32478f5 (patch)
treeec2168f6f0c1ecad17ae241f1ef7a882c31b5f16
parent3dfbaa2a4c7c22a21ff974e2aacbb199fc3aa7c4 (diff)
downloadlibmicrohttpd-9ec1b5df5e488ab1ab06dec156f1868fd32478f5.tar.gz
libmicrohttpd-9ec1b5df5e488ab1ab06dec156f1868fd32478f5.zip
attempt fix
-rw-r--r--src/microhttpd/mhd_send.c2
-rw-r--r--src/microhttpd/mhd_send.h7
2 files changed, 7 insertions, 2 deletions
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 4758b502..354b9349 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -712,7 +712,7 @@ MHD_conn_init_static_ (void)
712 * @param connection the MHD connection structure 712 * @param connection the MHD connection structure
713 * @return actual number of bytes sent 713 * @return actual number of bytes sent
714 */ 714 */
715static ssize_t 715ssize_t
716sendfile_adapter (struct MHD_Connection *connection) 716sendfile_adapter (struct MHD_Connection *connection)
717{ 717{
718 bool want_cork = false; 718 bool want_cork = false;
diff --git a/src/microhttpd/mhd_send.h b/src/microhttpd/mhd_send.h
index 490c8c9b..4974adcd 100644
--- a/src/microhttpd/mhd_send.h
+++ b/src/microhttpd/mhd_send.h
@@ -114,6 +114,11 @@ MHD_send_socket_state_cork_nodelay_ (struct MHD_Connection *connection,
114 bool nodelay_value, 114 bool nodelay_value,
115 bool nodelay_state); 115 bool nodelay_state);
116 116
117static ssize_t 117#if defined(_MHD_HAVE_SENDFILE)
118ssize_t
118sendfile_adapter (struct MHD_Connection *connection); 119sendfile_adapter (struct MHD_Connection *connection);
120#endif
121
122void
123MHD_conn_init_static_ (void);
119#endif /* MHD_SEND_H */ 124#endif /* MHD_SEND_H */