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@xxxxxxxxxxxxxxxxxxxxx> ----- 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 @@ -50,7 +50,6 @@ #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>