@@ -30,6 +30,7 @@
#include "sys_malloc.h"
#include <string.h>
+#include "sys_sockets_types.h"
#include "sys_sockets_headers.h"
#include "sys_ip_headers.h"
@@ -1343,7 +1343,7 @@ send_iov_nontls (struct MHD_Connection *restrict connection,
{
bool send_error;
size_t items_to_send;
-#ifndef MSG_NOSIGNAL_OR_ZERO
+#ifndef MHD_WINSOCK_SOCKETS
ssize_t res;
#endif
#ifdef HAVE_SENDMSG
@@ -28,6 +28,7 @@
#include "mhd_socket_error.h"
#include "mhd_sockets_macros.h"
MHD_INTERNAL enum mhd_SocketError
mhd_socket_error_get_from_sys_err (int socket_err)
@@ -24,6 +24,7 @@
* @author Karlson2k (Evgeny Grin)
*/
#include "mhd_sys_options.h"
#include "mhd_sockets_funcs.h"
@@ -45,6 +45,7 @@
# endif
#else
# include <winsock2.h>
+# include <ws2tcpip.h>
#endif /* ! MHD_SYS_SOCKETS_TYPES_H */