From 3bca49fd7fab14c19eb91d3b465a554361c1bf7f Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Wed, 9 Oct 2019 13:47:23 +0200 Subject: [PATCH] Only include when needed This plugin doesn't need sysctl.h on Linux. --- src/contextswitch.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 */ -- 2.11.0