]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Avoid using sysctl on linux
authorZebity Spring <zebity@yahoo.com>
Sat, 9 Nov 2019 11:31:23 +0000 (22:31 +1100)
committerZebity Spring <zebity@yahoo.com>
Sat, 9 Nov 2019 11:31:23 +0000 (22:31 +1100)
src/uuid.c

index 60d09b513c32d7a960c7990eef43dfeabc02f245..b5ac8944f27ebf730e0e7b56606a4ee5c511c03d 100644 (file)
@@ -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 <sys/sysctl.h>
 #endif