]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cmd: move declarations to macro.h
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 19 Aug 2018 17:32:38 +0000 (19:32 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 19 Aug 2018 18:27:45 +0000 (20:27 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/Makefile.am
src/lxc/cmd/lxc_usernsexec.c
src/lxc/macro.h

index 56a45b4ac8d9226e828ba2c1b6f06b0c35d49372..75efa0a5726e6faea37c200976fba07c648fde38 100644 (file)
@@ -330,6 +330,7 @@ lxc_usernsexec_SOURCES = cmd/lxc_usernsexec.c \
                         conf.c conf.h \
                         list.h \
                         log.c log.h \
+                        macro.h \
                         namespace.c namespace.h \
                         utils.c utils.h
 endif
index 837ed3428b9ee274d94b73a35cc35b9dca7aee84..35c00c8d319dae70ba4dd8604b5c74ae78145919 100644 (file)
 #include "conf.h"
 #include "list.h"
 #include "log.h"
+#include "macro.h"
 #include "namespace.h"
 #include "utils.h"
 
-#ifndef MS_REC
-#define MS_REC 16384
-#endif
-
-#ifndef MS_SLAVE
-#define MS_SLAVE (1 << 19)
-#endif
-
 extern int lxc_log_fd;
 
-int unshare(int flags);
-
 static void usage(const char *name)
 {
        printf("usage: %s [-h] [-m <uid-maps>] -- [command [arg ..]]\n", name);
index 75c63c7c143e9ad27b87d9ba23d001c93382e09a..8eb54f1639f7dedb35ca360efc7b8b1284089ef7 100644 (file)
@@ -187,4 +187,13 @@ extern int __build_bug_on_failed;
 #define NLMSG_ERROR 0x2
 #endif
 
+/* mount */
+#ifndef MS_REC
+#define MS_REC 16384
+#endif
+
+#ifndef MS_SLAVE
+#define MS_SLAVE (1 << 19)
+#endif
+
 #endif /* __LXC_MACRO_H */