From 1720590bfd7618efa10891f956bf4b265311be04 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 3 Nov 2016 14:33:49 -0400 Subject: [PATCH] analyze: fix build w/o seccomp --- src/analyze/analyze.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index 83e1cdf..f744a84 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); -- 2.7.4