diff --git a/plugins/check_swap.c b/plugins/check_swap.c
index 1903a00617855b225874abae588450499f2dce03..fb84ca4bd7d8c1d6a642cb5e1a257693fae6295d 100644 (file)
--- a/plugins/check_swap.c
+++ b/plugins/check_swap.c
#include "utils.h"
#ifdef HAVE_DECL_SWAPCTL
+# ifdef HAVE_SYS_PARAM_H
+# include <sys/param.h>
+# endif
# ifdef HAVE_SYS_SWAP_H
# include <sys/swap.h>
# endif
# ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
# endif
-# ifdef HAVE_SYS_PARAM_H
-# include <sys/param.h>
-# endif
#endif
#ifndef SWAP_CONVERSION