projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
202ddaa
)
Avoid using sysctl on linux
author
Zebity Spring
<zebity@yahoo.com>
Sat, 9 Nov 2019 11:26:39 +0000
(22:26 +1100)
committer
Zebity Spring
<zebity@yahoo.com>
Sat, 9 Nov 2019 11:26:39 +0000
(22:26 +1100)
src/swap.c
patch
|
blob
|
history
diff --git
a/src/swap.c
b/src/swap.c
index
61c9e28
..
0a86632
100644
(file)
--- a/
src/swap.c
+++ b/
src/swap.c
@@
-49,7
+49,8
@@
#if HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
-#if HAVE_SYS_SYSCTL_H
+#if defined(HAVE_SYS_SYSCTL_H) && defined(HAVE_SYSCTLBYNAME)
+/* implies BSD variant */
#include <sys/sysctl.h>
#endif
#if HAVE_SYS_DKSTAT_H