projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 2:
1dfd4ca
)
Merge pull request #3291 from dago/issue3220
author
Matthias Runge
<mrunge@redhat.com>
Fri, 11 Oct 2019 07:54:28 +0000
(09:54 +0200)
committer
GitHub
<noreply@github.com>
Fri, 11 Oct 2019 07:54:28 +0000
(09:54 +0200)
Link to libnsl.so if needed for inet_ntop()
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 */