[vlc-commits] compat: the official way to include WSA functions is with winsock2.h

Steve Lhomme git at videolan.org
Tue Feb 14 22:57:41 CET 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Feb 14 13:21:19 2017 +0100| [c02a90717c017a7c89b24e0eba675f4ab7e0761d] | committer: Jean-Baptiste Kempf

compat: the official way to include WSA functions is with winsock2.h

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c02a90717c017a7c89b24e0eba675f4ab7e0761d
---

 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 c90900f..941249f 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 c0bb31b..451ba29 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)
 {



More information about the vlc-commits mailing list