Convert to use winsock2.h instead of winsock.h.
authorChris Hanson <org/chris-hanson/cph>
Mon, 14 Dec 2009 10:05:46 +0000 (02:05 -0800)
committerChris Hanson <org/chris-hanson/cph>
Mon, 14 Dec 2009 10:05:46 +0000 (02:05 -0800)
src/microcode/ntsock.c

index 68dd2fe119e2003e1a0706441437cd66c05db18d..ef8d4cdbc69e533e704051ebacb37d8bf5d29949 100644 (file)
@@ -26,13 +26,16 @@ USA.
 /* This conditional encompasses the entire file.  */
 #ifndef DISABLE_SOCKET_SUPPORT
 
+/* Needed for winsock2 include below.  */
+#define WIN32_LEAN_AND_MEAN
+
 #include "scheme.h"
 #include "prims.h"
 #include "nt.h"
 #include "ntio.h"
 #include "uxsock.h"
 
-#include <winsock.h>
+#include <winsock2.h>
 
 channel_class_t * NT_channel_class_tcp_stream_socket;
 channel_class_t * NT_channel_class_tcp_server_socket;