[systemd-devel] [PATCH 5/9] capabilities: remove spurious include of <sys/capability.h> from localed.c

Filipe Brandenburger filbranden at google.com
Tue Dec 23 10:38:46 PST 2014


It does not use any functions from libcap directly. The CAP_SYS_ADMIN constant
in use by this file comes from <linux/capability.h> imported through "missing.h".

Tested that "systemd-localed" builds cleanly and works after this change.
---
 src/locale/localed.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/locale/localed.c b/src/locale/localed.c
index 0aaa63d..0723541 100644
--- a/src/locale/localed.c
+++ b/src/locale/localed.c
@@ -23,7 +23,6 @@
 #include <errno.h>
 #include <string.h>
 #include <unistd.h>
-#include <sys/capability.h>
 
 #include "sd-bus.h"
 
-- 
1.8.3.1



More information about the systemd-devel mailing list