Skip to content

Commit

Permalink
cmd: move declarations to macro.h
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Aug 19, 2018
1 parent 72a5069 commit c881c81
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions src/lxc/Makefile.am
Expand Up @@ -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
Expand Down
11 changes: 1 addition & 10 deletions src/lxc/cmd/lxc_usernsexec.c
Expand Up @@ -44,21 +44,12 @@
#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);
Expand Down
9 changes: 9 additions & 0 deletions src/lxc/macro.h
Expand Up @@ -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 */

0 comments on commit c881c81

Please sign in to comment.