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