[PATCH] Don't require libcap when building libsystemd-shared
Bryan Kadzban <[email protected]>
| Newsgroups | gmane.linux.hotplug.devel |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> ----- Tested by building just systemd-udevd, as the previous patch. Patch generated against current git again, as well.
remove-libcap-from-libsystemd-shared.patch
(text/plain, 302 B)
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>