From: Christian Brauner Date: Sat, 11 Aug 2018 00:21:14 +0000 (+0200) Subject: macro: add NLMSG_ERROR X-Git-Tag: lxc-3.1.0~168^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e3ed0d1969a31b977e8b88a44e30ce91ef5c1e4;p=thirdparty%2Flxc.git macro: add NLMSG_ERROR Signed-off-by: Christian Brauner --- 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) {