From: Zebity Spring Date: Sat, 9 Nov 2019 11:31:23 +0000 (+1100) Subject: Avoid using sysctl on linux X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ac1c1538e338f7f04deaff68604d36bba6ab4237;p=collectd.git Avoid using sysctl on linux --- diff --git a/src/uuid.c b/src/uuid.c index 60d09b51..b5ac8944 100644 --- a/src/uuid.c +++ b/src/uuid.c @@ -29,7 +29,8 @@ #include "plugin.h" #include "utils/common/common.h" -#if HAVE_SYS_SYSCTL_H +#if defined(HAVE_SYS_SYSCTL_H) && defined(HAVE_SYSCTLBYNAME) +/* Implies have BSD variant */ #include #endif