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

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


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

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

diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c
index bf567a1..d507200 100644
--- a/src/timedate/timedated.c
+++ b/src/timedate/timedated.c
@@ -22,7 +22,6 @@
 #include <errno.h>
 #include <string.h>
 #include <unistd.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