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