macro: add NLMSG_ERROR

parent 92cce8ee
...@@ -187,4 +187,8 @@ extern int __build_bug_on_failed; ...@@ -187,4 +187,8 @@ extern int __build_bug_on_failed;
#define RTM_NEWNSID 88 #define RTM_NEWNSID 88
#endif #endif
#ifndef NLMSG_ERROR
#define NLMSG_ERROR 0x2
#endif
#endif /* __LXC_MACRO_H */ #endif /* __LXC_MACRO_H */
...@@ -237,9 +237,6 @@ extern int netlink_send(struct nl_handler *handler, struct nlmsg *nlmsg) ...@@ -237,9 +237,6 @@ extern int netlink_send(struct nl_handler *handler, struct nlmsg *nlmsg)
return ret; return ret;
} }
#ifndef NLMSG_ERROR
#define NLMSG_ERROR 0x2
#endif
extern int netlink_transaction(struct nl_handler *handler, extern int netlink_transaction(struct nl_handler *handler,
struct nlmsg *request, struct nlmsg *answer) struct nlmsg *request, struct nlmsg *answer)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment