]> git.proxmox.com Git - mirror_ovs.git/commitdiff
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 cdf32d2329e2f8a70d1e14566037a9c6714e5ad4..93dc9c85411ad997f1e3aa1e226254e7fc2ba7ab 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 **);