[systemd-devel] [PATCH 8/9] capabilities: remove spurious include of <sys/capability.h> from machined sources
Filipe Brandenburger
filbranden at google.com
Tue Dec 23 10:38:49 PST 2014
They do not use any functions from libcap directly. The CAP_KILL constant in
use by these files comes from <linux/capability.h> imported through
"missing.h".
Tested that "systemd-machined" builds cleanly and works after this change.
---
src/machine/machine-dbus.c | 1 -
src/machine/machined-dbus.c | 1 -
2 files changed, 2 deletions(-)
diff --git a/src/machine/machine-dbus.c b/src/machine/machine-dbus.c
index 76c5dcf..7855c4c 100644
--- a/src/machine/machine-dbus.c
+++ b/src/machine/machine-dbus.c
@@ -21,7 +21,6 @@
#include <errno.h>
#include <string.h>
-#include <sys/capability.h>
#include <arpa/inet.h>
#include "bus-util.h"
diff --git a/src/machine/machined-dbus.c b/src/machine/machined-dbus.c
index 370d04a..ffb7722 100644
--- a/src/machine/machined-dbus.c
+++ b/src/machine/machined-dbus.c
@@ -23,7 +23,6 @@
#include <string.h>
#include <unistd.h>
#include <pwd.h>
-#include <sys/capability.h>
#include "sd-id128.h"
#include "sd-messages.h"
--
1.8.3.1
More information about the systemd-devel
mailing list