chiark / gitweb /
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 9db2a6b..67ec5ae 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>