1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

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.
This commit is contained in:
Filipe Brandenburger 2014-12-23 10:38:43 -08:00 committed by Zbigniew Jędrzejewski-Szmek
parent f01ae8260d
commit d920e59c7d
4 changed files with 0 additions and 4 deletions

View File

@ -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"

View File

@ -21,7 +21,6 @@
#include <errno.h>
#include <string.h>
#include <sys/capability.h>
#include "util.h"
#include "bus-util.h"

View File

@ -21,7 +21,6 @@
#include <errno.h>
#include <string.h>
#include <sys/capability.h>
#include "util.h"
#include "strv.h"

View File

@ -21,7 +21,6 @@
#include <errno.h>
#include <string.h>
#include <sys/capability.h>
#include "strv.h"
#include "bus-util.h"