* [PATCH] Don't require libcap when building libsystemd-shared
@ 2012-05-31 6:10 Bryan Kadzban
2012-05-31 9:59 ` Kay Sievers
0 siblings, 1 reply; 2+ messages in thread
From: Bryan Kadzban @ 2012-05-31 6:10 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 408 bytes --]
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@kadzban.is-a-geek.net>
-----
Tested by building just systemd-udevd, as the previous patch.
Patch generated against current git again, as well.
[-- Attachment #2: remove-libcap-from-libsystemd-shared.patch --]
[-- Type: text/plain, Size: 302 bytes --]
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>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Don't require libcap when building libsystemd-shared
2012-05-31 6:10 [PATCH] Don't require libcap when building libsystemd-shared Bryan Kadzban
@ 2012-05-31 9:59 ` Kay Sievers
0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2012-05-31 9:59 UTC (permalink / raw)
To: linux-hotplug
On Thu, May 31, 2012 at 8:10 AM, Bryan Kadzban
<bryan@kadzban.is-a-geek.net> wrote:
> 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.
Applied.
Thanks,
Kay
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-31 9:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-31 6:10 [PATCH] Don't require libcap when building libsystemd-shared Bryan Kadzban
2012-05-31 9:59 ` Kay Sievers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox