X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fswap.c;fp=src%2Fswap.c;h=0a86632276f1ce2775b7159874e19ef732fe88cf;hp=61c9e2845c60a61e97a2cead10442bfd4e14a540;hb=0405e3e6d5aff60bc4fc96c3168c6f8f49e71415;hpb=202ddaabef577cc306c96320daa480ac36cf57b2 diff --git a/src/swap.c b/src/swap.c index 61c9e284..0a866322 100644 --- a/src/swap.c +++ b/src/swap.c @@ -49,7 +49,8 @@ #if HAVE_SYS_PARAM_H #include #endif -#if HAVE_SYS_SYSCTL_H +#if defined(HAVE_SYS_SYSCTL_H) && defined(HAVE_SYSCTLBYNAME) +/* implies BSD variant */ #include #endif #if HAVE_SYS_DKSTAT_H