diff mbox

[ovs-dev] socket-util: Avoid using sendmsg on Windows

Message ID BY2PR0501MB2119A0B5C2E1E6FE3944846BA2AC0@BY2PR0501MB2119.namprd05.prod.outlook.com
State Not Applicable
Headers show

Commit Message

Shashank Ram July 13, 2017, 9:03 p.m. UTC

diff mbox

Patch

diff --git a/lib/socket-util.c b/lib/socket-util.c
index 7148ae3..de7df67 100644
--- a/lib/socket-util.c
+++ b/lib/socket-util.c
@@ -1021,6 +1021,7 @@  sock_strerror(int error)
 #endif
 }

+#ifndef _WIN32 //Avoid using sendmsg on Windows entirely
 static int
 emulate_sendmmsg(int fd, struct mmsghdr *msgs, unsigned int n,
                  unsigned int flags)
@@ -1058,3 +1059,4 @@  wrap_sendmmsg(int fd, struct mmsghdr *msgs, unsigned int n, unsigned int flags)
     return emulate_sendmmsg(fd, msgs, n, flags);
 }
 #endif
+#endif