X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fcontextswitch.c;h=d23d071713b0e77e5152d0e1c98673ce057c167a;hp=cf3d3daefe5cb47dc253ef885e356f4fe034c8fb;hb=3bca49fd7fab14c19eb91d3b465a554361c1bf7f;hpb=ebb558dd443046558eaf0bb3ec51566ad305190f diff --git a/src/contextswitch.c b/src/contextswitch.c index cf3d3dae..d23d0717 100644 --- a/src/contextswitch.c +++ b/src/contextswitch.c @@ -26,11 +26,8 @@ #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 */