commit 34593987cab75ae7533bd79d3c1571e3ec6b5a39
parent 958d8704e85fd94f76aea7a666557de9794df480
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Mon, 30 Nov 2020 00:52:04 +0300
mhd_send: fixed for C90 compilers
Diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
@@ -452,6 +452,9 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection,
const char *buffer,
size_t buffer_size)
{
+ MHD_socket s = connection->socket_fd;
+ ssize_t ret;
+ struct iovec vector[2];
#ifdef HTTPS_SUPPORT
const bool tls_conn = (connection->daemon->options & MHD_USE_TLS);
#else /* ! HTTPS_SUPPORT */
@@ -471,10 +474,6 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection,
}
#endif
#if defined(HAVE_SENDMSG) || defined(HAVE_WRITEV)
- MHD_socket s = connection->socket_fd;
- ssize_t ret;
- struct iovec vector[2];
-
/* Since we generally give the fully answer, we do not want
corking to happen */
pre_cork_setsockopt (connection, tls_conn, false);