diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-11-03 14:33:49 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-11-03 16:23:12 -0400 |
commit | 1720590bfd7618efa10891f956bf4b265311be04 (patch) | |
tree | 149cec89b85106c11c5fc482eac74be2d1aa9350 /src/analyze | |
parent | d5efc18b609ad8cfe63325c8b4f82264e56eadf3 (diff) |
analyze: fix build w/o seccomp
Diffstat (limited to 'src/analyze')
-rw-r--r-- | src/analyze/analyze.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index 83e1cdf11d..f744a84501 100644 --- a/src/analyze/analyze.c +++ b/src/analyze/analyze.c @@ -1276,6 +1276,7 @@ static int set_log_target(sd_bus *bus, char **args) { return 0; } +#ifdef HAVE_SECCOMP static void dump_syscall_filter(const SyscallFilterSet *set) { const char *syscall; @@ -1325,6 +1326,13 @@ static int dump_syscall_filters(char** names) { return 0; } +#else +static int dump_syscall_filters(char** names) { + log_error("Not compiled with syscall filters, sorry."); + return -EOPNOTSUPP; +} +#endif + static void help(void) { pager_open(arg_no_pager, false); |