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 60d09b5..b5ac894 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