Ignore HAVE_NETLINK macro when compiling with MSVC this will allow the
inclusion of the netlink-socket.h.

Signed-off-by: Alin Gabriel Serdean <[email protected]>
---
 lib/netlink-socket.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/netlink-socket.h b/lib/netlink-socket.h
index 8ac201a..2b28131 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

_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to