projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebb558d
)
Only include <sys/sysctl.h> when needed
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Wed, 9 Oct 2019 11:47:23 +0000
(13:47 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Wed, 9 Oct 2019 11:47:23 +0000
(13:47 +0200)
This plugin doesn't need sysctl.h on Linux.
src/contextswitch.c
patch
|
blob
|
history
diff --git
a/src/contextswitch.c
b/src/contextswitch.c
index
cf3d3da
..
d23d071
100644
(file)
--- a/
src/contextswitch.c
+++ b/
src/contextswitch.c
@@
-26,11
+26,8
@@
#include "plugin.h"
#include "utils/common/common.h"
-#if
def HAVE_SYS_SYSCTL_H
+#if
defined(HAVE_SYSCTLBYNAME) && defined(HAVE_SYS_SYSCTL_H)
#include <sys/sysctl.h>
-#endif
-
-#if HAVE_SYSCTLBYNAME
/* no global variables */
/* #endif HAVE_SYSCTLBYNAME */