From: Dima Krasner Date: Sun, 14 May 2017 09:24:59 +0000 (+0300) Subject: conf: fix build without libcap X-Git-Tag: lxc-1.0.11~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47ce4873ee1f37f9318c753850fb28937eefc2ec;p=thirdparty%2Flxc.git conf: fix build without libcap Signed-off-by: Dima Krasner --- diff --git a/src/lxc/conf.c b/src/lxc/conf.c index 450d34222..c90540e2e 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -130,6 +130,14 @@ lxc_log_define(lxc_conf, lxc); #define LO_FLAGS_AUTOCLEAR 4 #endif +#ifndef CAP_SETUID +#define CAP_SETUID 7 +#endif + +#ifndef CAP_SETGID +#define CAP_SETGID 6 +#endif + /* needed for cgroup automount checks, regardless of whether we * have included linux/capability.h or not */ #ifndef CAP_SYS_ADMIN