netlink-socket: Allow compiling on MSVC even without HAVE_NETLINK.
authorAlin Serdean <aserdean@cloudbasesolutions.com>
Tue, 29 Jul 2014 15:22:37 +0000 (15:22 +0000)
committerBen Pfaff <blp@nicira.com>
Tue, 29 Jul 2014 16:32:55 +0000 (09:32 -0700)
Bypass the error compilation when compiling under MSVC.

Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/netlink-socket.h

index cdf32d2..93dc9c8 100644 (file)
 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 **);