From ef2f5879b67e733f24dbd379f159e526e07fe3eb Mon Sep 17 00:00:00 2001 From: "roberto@centos32" Date: Tue, 19 Apr 2011 13:46:26 +0200 Subject: [PATCH] conditionally compile netlink support --- lib/netlink.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/netlink.c b/lib/netlink.c index a03e7272..2a6aa382 100644 --- a/lib/netlink.c +++ b/lib/netlink.c @@ -4,6 +4,8 @@ #include #include +#ifdef IFLA_NET_NS_PID + #define NLMSG_TAIL(nmsg) \ ((struct rtattr *) (((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len))) @@ -377,3 +379,4 @@ int uwsgi_nl_send(struct nlmsghdr *nlmsg) { close(nlfd); return ret; } +#endif