diff --git a/src/lxc/macro.h b/src/lxc/macro.h index 83c40cef0..3ef0ab4c2 100644 --- a/src/lxc/macro.h +++ b/src/lxc/macro.h @@ -187,4 +187,8 @@ extern int __build_bug_on_failed; #define RTM_NEWNSID 88 #endif +#ifndef NLMSG_ERROR +#define NLMSG_ERROR 0x2 +#endif + #endif /* __LXC_MACRO_H */ diff --git a/src/lxc/nl.c b/src/lxc/nl.c index dfe71110f..c83c587e8 100644 --- a/src/lxc/nl.c +++ b/src/lxc/nl.c @@ -237,9 +237,6 @@ extern int netlink_send(struct nl_handler *handler, struct nlmsg *nlmsg) return ret; } -#ifndef NLMSG_ERROR -#define NLMSG_ERROR 0x2 -#endif extern int netlink_transaction(struct nl_handler *handler, struct nlmsg *request, struct nlmsg *answer) {