Avoid using sysctl on linux
authorZebity Spring <zebity@yahoo.com>
Sat, 9 Nov 2019 11:43:36 +0000 (22:43 +1100)
committerZebity Spring <zebity@yahoo.com>
Sat, 9 Nov 2019 11:43:36 +0000 (22:43 +1100)
src/uuid.c

index b5ac894..4bd4334 100644 (file)
@@ -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 <sys/sysctl.h>
 #endif