Code

Include <sys/param.h> before <sys/swap.h> in order to fix compilation on
authorHolger Weiss <hweiss@users.sourceforge.net>
Wed, 7 Feb 2007 14:06:11 +0000 (14:06 +0000)
committerHolger Weiss <hweiss@users.sourceforge.net>
Wed, 7 Feb 2007 14:06:11 +0000 (14:06 +0000)
OpenBSD (nsturm - 1653934)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1613 f882894a-f735-0410-b71e-b25c423dba1c

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