]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
macro: add NLMSG_ERROR
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 11 Aug 2018 00:21:14 +0000 (02:21 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sat, 11 Aug 2018 00:21:14 +0000 (02:21 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/macro.h
src/lxc/nl.c

index 83c40cef033216331d7eedc26a1c844b7942114a..3ef0ab4c20f229a19f07678a0d9d87e7d008120a 100644 (file)
@@ -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 */
index dfe71110fa3421799389427302d10c989b836456..c83c587e8c2625025ec4abb25da9212fd3dff070 100644 (file)
@@ -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)
 {