From: Alin Serdean Date: Tue, 29 Jul 2014 15:22:37 +0000 (+0000) Subject: netlink-socket: Allow compiling on MSVC even without HAVE_NETLINK. X-Git-Tag: v2.4.0~1726 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;ds=sidebyside;h=e214f75182f9e2b14f87d6a976739c38fc3d4c70;p=cascardo%2Fovs.git netlink-socket: Allow compiling on MSVC even without HAVE_NETLINK. Bypass the error compilation when compiling under MSVC. Signed-off-by: Alin Gabriel Serdean Signed-off-by: Ben Pfaff --- diff --git a/lib/netlink-socket.h b/lib/netlink-socket.h index cdf32d232..93dc9c854 100644 --- a/lib/netlink-socket.h +++ b/lib/netlink-socket.h @@ -192,8 +192,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 **);