From: Christian Brauner Date: Thu, 3 Dec 2015 18:24:40 +0000 (+0100) Subject: Conditional compilation for ARM and PPC X-Git-Tag: lxc-2.0.0.beta1~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca3995947f654c39e6942e9b5325c0633993342a;p=thirdparty%2Flxc.git Conditional compilation for ARM and PPC Check if symbols SCMP_ARCH_ARM and SCMP_ARCH_PPC are defined. Signed-off-by: Christian Brauner Acked-by: Serge E. Hallyn --- diff --git a/src/lxc/seccomp.c b/src/lxc/seccomp.c index c5f188550..5982cb475 100644 --- a/src/lxc/seccomp.c +++ b/src/lxc/seccomp.c @@ -300,6 +300,7 @@ static int parse_config_v2(FILE *f, char *line, struct lxc_conf *conf) default_policy_action); if (!compat_ctx) goto bad; +#ifdef SCMP_ARCH_PPC } else if (native_arch == lxc_seccomp_arch_ppc64) { cur_rule_arch = lxc_seccomp_arch_all; compat_arch = SCMP_ARCH_PPC; @@ -307,6 +308,8 @@ static int parse_config_v2(FILE *f, char *line, struct lxc_conf *conf) default_policy_action); if (!compat_ctx) goto bad; +#endif +#ifdef SCMP_ARCH_ARM } else if (native_arch == lxc_seccomp_arch_arm64) { cur_rule_arch = lxc_seccomp_arch_all; compat_arch = SCMP_ARCH_ARM; @@ -314,6 +317,7 @@ static int parse_config_v2(FILE *f, char *line, struct lxc_conf *conf) default_policy_action); if (!compat_ctx) goto bad; +#endif } if (default_policy_action != SCMP_ACT_KILL) {