From 893a95a86485d27e64104e9ffd94f4ab4fa1fffc Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 25 Feb 2016 18:01:49 +0100 Subject: swrap: Fix buliding on unix systems without AF_NETLINK Signed-off-by: Andreas Schneider Reviewed-by: Ralph Boehme --- src/socket_wrapper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/socket_wrapper.c b/src/socket_wrapper.c index fc9116b..3b0499d 100644 --- a/src/socket_wrapper.c +++ b/src/socket_wrapper.c @@ -2383,7 +2383,9 @@ static int swrap_socket(int family, int type, int protocol) case AF_INET6: #endif break; +#ifdef AF_NETLINK case AF_NETLINK: +#endif /* AF_NETLINK */ case AF_UNIX: return libc_socket(family, type, protocol); default: -- cgit