From f01ae8260d90ccff2f299242cd370ab58ea723f0 Mon Sep 17 00:00:00 2001 From: Filipe Brandenburger Date: Tue, 23 Dec 2014 10:38:42 -0800 Subject: [PATCH 1/1] nspawn: remove spurious include of It does not use any functions from libcap directly. The CAP_* constants in use through this file come from "missing.h" which will import and complement it with CAP_* constants not defined by the current kernel headers. Add an explicit import of our "capability.h" since it does use the function capability_bounding_set_drop from that header file. Previously, that header was implicitly imported through through "cap-list.h". Tested that "systemd-nspawn" builds cleanly and works after this change. --- src/nspawn/nspawn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 0dd12adf0..04396ebed 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -31,7 +31,6 @@ #include #include #include -#include #include #include #include @@ -90,6 +89,7 @@ #include "base-filesystem.h" #include "barrier.h" #include "event-util.h" +#include "capability.h" #include "cap-list.h" #include "btrfs-util.h" -- 2.30.2