compat: the official way to include WSA functions is with winsock2.h
authorSteve Lhomme <robUx4@videolabs.io>
Tue, 14 Feb 2017 12:21:19 +0000 (13:21 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 14 Feb 2017 21:52:41 +0000 (22:52 +0100)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
compat/recvmsg.c
compat/sendmsg.c

index c90900f..941249f 100644 (file)
@@ -25,7 +25,7 @@
 #ifdef _WIN32
 # include <errno.h>
 # include <stdlib.h>
-# include <mswsock.h>
+# include <winsock2.h>
 
 ssize_t recvmsg(int fd, struct msghdr *msg, int flags)
 {
index c0bb31b..451ba29 100644 (file)
@@ -25,7 +25,7 @@
 #ifdef _WIN32
 # include <errno.h>
 # include <stdlib.h>
-# include <mswsock.h>
+# include <winsock2.h>
 
 ssize_t sendmsg(int fd, const struct msghdr *msg, int flags)
 {