]> err.no Git - systemd/commitdiff
util: don't require libcap when building libsystemd-shared
authorKay Sievers <kay@vrfy.org>
Thu, 31 May 2012 09:58:06 +0000 (11:58 +0200)
committerKay Sievers <kay@vrfy.org>
Thu, 31 May 2012 09:58:06 +0000 (11:58 +0200)
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.

src/shared/util.c

index 9db2a6b2a28634209e2453bddd12f294e0909938..67ec5ae747777d7121bb7a9626ea85fd471bf8d9 100644 (file)
@@ -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>