summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-03-03 17:12:56 +0100
committerLennart Poettering <lennart@poettering.net>2014-03-03 17:55:32 +0100
commitb64a3d86bcc3b3698824019d0ebdc2117ad31bb5 (patch)
treebb83296208753242b673a1ae0f61ca716a317128
parent98b47d54ce946ad3524f84eb38d2413498a333dc (diff)
execute: no need to include seccomp.h from execute.h
-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 3c905cefae..efda23f9d8 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 d3581fcde9..71ec607dec 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"