From e214f75182f9e2b14f87d6a976739c38fc3d4c70 Mon Sep 17 00:00:00 2001 From: Alin Serdean Date: Tue, 29 Jul 2014 15:22:37 +0000 Subject: [PATCH] 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 --- lib/netlink-socket.h | 2 ++ 1 file changed, 2 insertions(+) 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 **); -- 2.20.1