conditionally compile netlink support

This commit is contained in:
roberto@centos32
2011-04-19 13:46:26 +02:00
parent ee725bf625
commit ef2f5879b6
+3
View File
@@ -4,6 +4,8 @@
#include <linux/rtnetlink.h>
#include <net/if.h>
#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