projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0405e3e
)
Avoid using sysctl on linux
author
Zebity Spring
<zebity@yahoo.com>
Sat, 9 Nov 2019 11:31:23 +0000
(22:31 +1100)
committer
Zebity Spring
<zebity@yahoo.com>
Sat, 9 Nov 2019 11:31:23 +0000
(22:31 +1100)
src/uuid.c
patch
|
blob
|
history
diff --git
a/src/uuid.c
b/src/uuid.c
index
60d09b5
..
b5ac894
100644
(file)
--- 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 <sys/sysctl.h>
#endif