summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2016-02-25 18:01:49 +0100
committerAndreas Schneider <asn@samba.org>2016-03-02 09:29:50 +0100
commit893a95a86485d27e64104e9ffd94f4ab4fa1fffc (patch)
treee0d2842ed71bc377f94b0dbdcb6d7fe3073813d4
parent1f9ea967f81938a86fd120f59daaa01f055cdb48 (diff)
downloadsocket_wrapper-893a95a86485d27e64104e9ffd94f4ab4fa1fffc.tar.gz
socket_wrapper-893a95a86485d27e64104e9ffd94f4ab4fa1fffc.tar.xz
socket_wrapper-893a95a86485d27e64104e9ffd94f4ab4fa1fffc.zip
swrap: Fix buliding on unix systems without AF_NETLINK
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
-rw-r--r--src/socket_wrapper.c2
1 files changed, 2 insertions, 0 deletions
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: