X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fcontextswitch.c;h=d23d071713b0e77e5152d0e1c98673ce057c167a;hp=35ac5a397b03b1a095ac6199d5af48096546f0eb;hb=3bca49fd7fab14c19eb91d3b465a554361c1bf7f;hpb=06a86a60a7dabc685bdbd81ce3d36ea5f7e2c2d4 diff --git a/src/contextswitch.c b/src/contextswitch.c index 35ac5a39..d23d0717 100644 --- a/src/contextswitch.c +++ b/src/contextswitch.c @@ -23,14 +23,11 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" +#include "utils/common/common.h" -#ifdef HAVE_SYS_SYSCTL_H +#if defined(HAVE_SYSCTLBYNAME) && defined(HAVE_SYS_SYSCTL_H) #include -#endif - -#if HAVE_SYSCTLBYNAME /* no global variables */ /* #endif HAVE_SYSCTLBYNAME */ @@ -73,7 +70,7 @@ static int cs_read(void) { } cs_submit(value); -/* #endif HAVE_SYSCTLBYNAME */ + /* #endif HAVE_SYSCTLBYNAME */ #elif KERNEL_LINUX FILE *fh; @@ -116,7 +113,7 @@ static int cs_read(void) { if (status == -2) ERROR("contextswitch plugin: Unable to find context switch value."); -/* #endif KERNEL_LINUX */ + /* #endif KERNEL_LINUX */ #elif HAVE_PERFSTAT int status = 0;