summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFilipe Brandenburger <filbranden@google.com>2014-12-23 10:38:43 -0800
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-12-25 10:56:13 -0500
commitd920e59c7df63300e5b5191d2a4be7b3baac6ea8 (patch)
tree4b99c2fad9930acc91bc0e3e6ae75f0585db4b5b /src
parentf01ae8260d90ccff2f299242cd370ab58ea723f0 (diff)
logind: remove spurious include of <sys/capability.h>
They do not use any functions from libcap directly. The CAP_* constants in use through these files come from "missing.h" which will import <linux/capability.h> and complement it with CAP_* constants not defined by the current kernel headers. The "missing.h" header is imported through "util.h" which gets imported in "logind.h". Tested that "systemd-logind" builds cleanly and works after this change.
Diffstat (limited to 'src')
-rw-r--r--src/login/logind-dbus.c1
-rw-r--r--src/login/logind-seat-dbus.c1
-rw-r--r--src/login/logind-session-dbus.c1
-rw-r--r--src/login/logind-user-dbus.c1
4 files changed, 0 insertions, 4 deletions
diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c
index 8ea653f70d..c0d1309474 100644
--- a/src/login/logind-dbus.c
+++ b/src/login/logind-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"
diff --git a/src/login/logind-seat-dbus.c b/src/login/logind-seat-dbus.c
index ff87f0f741..a99d0084ef 100644
--- a/src/login/logind-seat-dbus.c
+++ b/src/login/logind-seat-dbus.c
@@ -21,7 +21,6 @@
#include <errno.h>
#include <string.h>
-#include <sys/capability.h>
#include "util.h"
#include "bus-util.h"
diff --git a/src/login/logind-session-dbus.c b/src/login/logind-session-dbus.c
index 8607d03265..4e75d5b209 100644
--- a/src/login/logind-session-dbus.c
+++ b/src/login/logind-session-dbus.c
@@ -21,7 +21,6 @@
#include <errno.h>
#include <string.h>
-#include <sys/capability.h>
#include "util.h"
#include "strv.h"
diff --git a/src/login/logind-user-dbus.c b/src/login/logind-user-dbus.c
index 51793f6dad..812a19f83b 100644
--- a/src/login/logind-user-dbus.c
+++ b/src/login/logind-user-dbus.c
@@ -21,7 +21,6 @@
#include <errno.h>
#include <string.h>
-#include <sys/capability.h>
#include "strv.h"
#include "bus-util.h"