summaryrefslogtreecommitdiffstats
path: root/plugins/check_swap.c
diff options
context:
space:
mode:
authorHolger Weiss <hweiss@users.sourceforge.net>2007-02-07 14:06:11 +0000
committerHolger Weiss <hweiss@users.sourceforge.net>2007-02-07 14:06:11 +0000
commitc391272975965ded901818c73abc492e1e354acb (patch)
treef50fbdfecdecc6348c3aa73c8911c4628905238d /plugins/check_swap.c
parent8572a59254e37a5aee4a113f8737553a511f15a5 (diff)
downloadmonitoring-plugins-c391272975965ded901818c73abc492e1e354acb.tar.gz
Include <sys/param.h> before <sys/swap.h> in order to fix compilation on
OpenBSD (nsturm - 1653934) git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1613 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_swap.c')
-rw-r--r--plugins/check_swap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_swap.c b/plugins/check_swap.c
index 1903a006..fb84ca4b 100644
--- a/plugins/check_swap.c
+++ b/plugins/check_swap.c
@@ -42,15 +42,15 @@ const char *email = "nagiosplug-devel@lists.sourceforge.net";
42#include "utils.h" 42#include "utils.h"
43 43
44#ifdef HAVE_DECL_SWAPCTL 44#ifdef HAVE_DECL_SWAPCTL
45# ifdef HAVE_SYS_PARAM_H
46# include <sys/param.h>
47# endif
45# ifdef HAVE_SYS_SWAP_H 48# ifdef HAVE_SYS_SWAP_H
46# include <sys/swap.h> 49# include <sys/swap.h>
47# endif 50# endif
48# ifdef HAVE_SYS_STAT_H 51# ifdef HAVE_SYS_STAT_H
49# include <sys/stat.h> 52# include <sys/stat.h>
50# endif 53# endif
51# ifdef HAVE_SYS_PARAM_H
52# include <sys/param.h>
53# endif
54#endif 54#endif
55 55
56#ifndef SWAP_CONVERSION 56#ifndef SWAP_CONVERSION