chiark / gitweb /
core: fix build without libseccomp
[elogind.git] / src / core / dbus-execute.c
index 34d8eedc075ed23dd9aa841582ca3ee841f49f62..435c3d505faa3e1e2250c03fc14a462e74d9cd48 100644 (file)
@@ -350,14 +350,17 @@ static int property_get_syscall_filter(
         ExecContext *c = userdata;
         _cleanup_strv_free_ char **l = NULL;
         _cleanup_free_ char *t = NULL;
+#ifdef HAVE_SECCOMP
         Iterator i;
         void *id;
         int r;
+#endif
 
         assert(bus);
         assert(reply);
         assert(c);
 
+#ifdef HAVE_SECCOMP
         SET_FOREACH(id, c->syscall_filter, i) {
                 char *name;
 
@@ -371,6 +374,7 @@ static int property_get_syscall_filter(
                         return -ENOMEM;
                 }
         }
+#endif
 
         strv_sort(l);