From: Christian Brauner Date: Thu, 24 May 2018 14:24:09 +0000 (+0200) Subject: seccomp: move #ifdefines X-Git-Tag: lxc-3.1.0~291^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b5c590dcce50a6133c66ff19dd3665c40f944be;p=thirdparty%2Flxc.git seccomp: move #ifdefines Signed-off-by: Christian Brauner --- diff --git a/src/lxc/seccomp.c b/src/lxc/seccomp.c index 33994d489..8a418a66e 100644 --- a/src/lxc/seccomp.c +++ b/src/lxc/seccomp.c @@ -34,6 +34,14 @@ #include "lxcseccomp.h" #include "utils.h" +#ifdef __MIPSEL__ +#define MIPS_ARCH_O32 lxc_seccomp_arch_mipsel +#define MIPS_ARCH_N64 lxc_seccomp_arch_mipsel64 +#else +#define MIPS_ARCH_O32 lxc_seccomp_arch_mips +#define MIPS_ARCH_N64 lxc_seccomp_arch_mips64 +#endif + lxc_log_define(lxc_seccomp, lxc); static int parse_config_v1(FILE *f, struct lxc_conf *conf) @@ -294,14 +302,6 @@ enum lxc_hostarch_t { lxc_seccomp_arch_unknown = 999, }; -#ifdef __MIPSEL__ -# define MIPS_ARCH_O32 lxc_seccomp_arch_mipsel -# define MIPS_ARCH_N64 lxc_seccomp_arch_mipsel64 -#else -# define MIPS_ARCH_O32 lxc_seccomp_arch_mips -# define MIPS_ARCH_N64 lxc_seccomp_arch_mips64 -#endif - int get_hostarch(void) { struct utsname uts;