X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fceph.c;h=8cda764fc6f41d3a28d41192bab2281d8f3b9da8;hb=448627953cde2f7b3b138f53f4f2c62f0d48b726;hp=e9bb960d9492958992dfabe336b3cfcd1e5d6bea;hpb=e5e5d99350fa54e22f07b90fbc3102df51565ad9;p=collectd.git diff --git a/src/ceph.c b/src/ceph.c index e9bb960d..8cda764f 100644 --- a/src/ceph.c +++ b/src/ceph.c @@ -1577,7 +1577,7 @@ static int ceph_init(void) { int ret; -#ifdef HAVE_SYS_CAPABILITY_H +#if defined(HAVE_SYS_CAPABILITY_H) && defined(CAP_DAC_OVERRIDE) if (check_capability (CAP_DAC_OVERRIDE) != 0) { if (getuid () == 0)