Code

Include <sys/param.h> before <sys/swap.h> in order to fix compilation on
[nagiosplug.git] / plugins / check_swap.c
index 1903a00617855b225874abae588450499f2dce03..fb84ca4bd7d8c1d6a642cb5e1a257693fae6295d 100644 (file)
@@ -42,15 +42,15 @@ const char *email = "nagiosplug-devel@lists.sourceforge.net";
 #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