[vlc-devel] [PATCH] compat: the proper way to include WSA functions is with winsock2.h

Steve Lhomme robux4 at videolabs.io
Tue Feb 14 13:21:19 CET 2017


---
 compat/recvmsg.c | 2 +-
 compat/sendmsg.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/compat/recvmsg.c b/compat/recvmsg.c
index c90900f3d2..941249fef7 100644
--- a/compat/recvmsg.c
+++ b/compat/recvmsg.c
@@ -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)
 {
diff --git a/compat/sendmsg.c b/compat/sendmsg.c
index c0bb31bc6a..451ba298bf 100644
--- a/compat/sendmsg.c
+++ b/compat/sendmsg.c
@@ -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)
 {
-- 
2.11.0



More information about the vlc-devel mailing list