summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/execute.h6
-rw-r--r--src/core/main.c3
2 files changed, 4 insertions, 5 deletions
diff --git a/src/core/execute.h b/src/core/execute.h
index 3c905cefa..efda23f9d 100644
--- a/src/core/execute.h
+++ b/src/core/execute.h
@@ -33,14 +33,10 @@ typedef struct ExecRuntime ExecRuntime;
#include <stdbool.h>
#include <stdio.h>
#include <sched.h>
-#ifdef HAVE_SECCOMP
-#include <seccomp.h>
-
-#include "set.h"
-#endif
#include "list.h"
#include "util.h"
+#include "set.h"
#include "fdset.h"
typedef enum ExecInput {
diff --git a/src/core/main.c b/src/core/main.c
index d3581fcde..71ec607de 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -35,6 +35,9 @@
#ifdef HAVE_VALGRIND_VALGRIND_H
#include <valgrind/valgrind.h>
#endif
+#ifdef HAVE_SECCOMP
+#include <seccomp.h>
+#endif
#include "sd-daemon.h"
#include "sd-messages.h"