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>
Kay Sievers | 31 May 2012 11:59
Gravatar

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

On Thu, May 31, 2012 at 8:10 AM, Bryan Kadzban
<bryan <at> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Gmane