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:
parent
f01ae8260d
commit
d920e59c7d
@ -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"
|
||||
|
@ -21,7 +21,6 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <sys/capability.h>
|
||||
|
||||
#include "util.h"
|
||||
#include "bus-util.h"
|
||||
|
@ -21,7 +21,6 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <sys/capability.h>
|
||||
|
||||
#include "util.h"
|
||||
#include "strv.h"
|
||||
|
@ -21,7 +21,6 @@
|
||||
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <sys/capability.h>
|
||||
|
||||
#include "strv.h"
|
||||
#include "bus-util.h"
|
||||
|
Loading…
Reference in New Issue
Block a user