projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid using sysctl on linux
[collectd.git]
/
src
/
swap.c
diff --git
a/src/swap.c
b/src/swap.c
index
0a86632
..
ee5afa0
100644
(file)
--- a/
src/swap.c
+++ b/
src/swap.c
@@
-49,7
+49,7
@@
#if HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#if HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
-#if
defined(HAVE_SYS_SYSCTL_H) && defined(HAVE_SYSCTLBYNAME
)
+#if
(defined(HAVE_SYS_SYSCTL_H) && defined(HAVE_SYSCTLBYNAME)) || defined(__OpenBSD__
)
/* implies BSD variant */
#include <sys/sysctl.h>
#endif
/* implies BSD variant */
#include <sys/sysctl.h>
#endif