X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcontextswitch.c;h=acf3a74d65711151151a469495e8ed90669d7e5c;hb=master;hp=cf3d3daefe5cb47dc253ef885e356f4fe034c8fb;hpb=2388b9fd7b49cd9a16125859689ef7af7ce2c358;p=collectd.git 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 */