diff options
author | ng0 <ng0@n0.is> | 2019-07-25 17:49:05 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-07-25 17:49:05 +0000 |
commit | 9ec1b5df5e488ab1ab06dec156f1868fd32478f5 (patch) | |
tree | ec2168f6f0c1ecad17ae241f1ef7a882c31b5f16 | |
parent | 3dfbaa2a4c7c22a21ff974e2aacbb199fc3aa7c4 (diff) | |
download | libmicrohttpd-9ec1b5df5e488ab1ab06dec156f1868fd32478f5.tar.gz libmicrohttpd-9ec1b5df5e488ab1ab06dec156f1868fd32478f5.zip |
attempt fix
-rw-r--r-- | src/microhttpd/mhd_send.c | 2 | ||||
-rw-r--r-- | src/microhttpd/mhd_send.h | 7 |
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 | */ |
715 | static ssize_t | 715 | ssize_t |
716 | sendfile_adapter (struct MHD_Connection *connection) | 716 | sendfile_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 | ||
117 | static ssize_t | 117 | #if defined(_MHD_HAVE_SENDFILE) |
118 | ssize_t | ||
118 | sendfile_adapter (struct MHD_Connection *connection); | 119 | sendfile_adapter (struct MHD_Connection *connection); |
120 | #endif | ||
121 | |||
122 | void | ||
123 | MHD_conn_init_static_ (void); | ||
119 | #endif /* MHD_SEND_H */ | 124 | #endif /* MHD_SEND_H */ |