[ovs-dev] [PATCH 3/5] Bypass HAVE_NETLINK for MSVC
Alin Serdean
aserdean at cloudbasesolutions.com
Thu Jul 17 19:34:14 UTC 2014
Bypass the error compilation when compiling under MSVC.
Signed-off-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
---
lib/netlink-socket.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/netlink-socket.h b/lib/netlink-socket.h
index d53db4e..2b9ec52 100644
--- a/lib/netlink-socket.h
+++ b/lib/netlink-socket.h
@@ -57,8 +57,10 @@
struct nl_sock;
#ifndef HAVE_NETLINK
+#ifndef _WIN32
#error "netlink-socket.h is only for hosts that support Netlink sockets"
#endif
+#endif
/* Netlink sockets. */
int nl_sock_create(int protocol, struct nl_sock **);
--
1.9.0.msysgit.0
More information about the dev
mailing list