Evgeny Grin (Karlson2k) преди 1 година
родител
ревизия
5f83783100
променени са 5 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 1 0
      src/mhd2/daemon_start.c
  2. 1 1
      src/mhd2/mhd_send.c
  3. 1 0
      src/mhd2/mhd_socket_error.c
  4. 1 0
      src/mhd2/mhd_sockets_funcs.c
  5. 1 0
      src/mhd2/sys_sockets_types.h

+ 1 - 0
src/mhd2/daemon_start.c

@@ -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"
 

+ 1 - 1
src/mhd2/mhd_send.c

@@ -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

+ 1 - 0
src/mhd2/mhd_socket_error.c

@@ -28,6 +28,7 @@
 #include "mhd_socket_error.h"
 #include "sys_sockets_headers.h"
 #include "mhd_sockets_macros.h"
+#include "sys_sockets_types.h"
 
 MHD_INTERNAL enum mhd_SocketError
 mhd_socket_error_get_from_sys_err (int socket_err)

+ 1 - 0
src/mhd2/mhd_sockets_funcs.c

@@ -24,6 +24,7 @@
  * @author Karlson2k (Evgeny Grin)
  */
 #include "mhd_sys_options.h"
+#include "sys_sockets_types.h"
 #include "mhd_sockets_funcs.h"
 #include "sys_sockets_headers.h"
 #include "sys_ip_headers.h"

+ 1 - 0
src/mhd2/sys_sockets_types.h

@@ -45,6 +45,7 @@
 #  endif
 #else
 #  include <winsock2.h>
+#  include <ws2tcpip.h>
 #endif
 
 #endif /* ! MHD_SYS_SOCKETS_TYPES_H */