Bryan Kadzban | 31 May 2012 08:10

[PATCH] Don't require libcap when building libsystemd-shared

src/shared/util.c includes <sys/capability.h> but doesn't use anything
defined there.  Since <sys/capability.h> is part of libcap, not libc,
don't require it.

Allows systemd-without-udevd to require fewer external libraries.

Signed-Off-By: Bryan Kadzban <bryan <at> kadzban.is-a-geek.net>

-----
Tested by building just systemd-udevd, as the previous patch.

Patch generated against current git again, as well.
diff --git a/src/shared/util.c b/src/shared/util.c
index 9db2a6b..67ec5ae 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
 <at>  <at>  -50,7 +50,6  <at>  <at> 
 #include <linux/kd.h>
 #include <dlfcn.h>
 #include <sys/wait.h>
-#include <sys/capability.h>
 #include <sys/time.h>
 #include <glob.h>
 #include <grp.h>

Gmane