[Nagiosplug-checkins] nagiosplug/plugins check_swap.c,1.58,1.59
Holger Weiss
hweiss at users.sourceforge.net
Wed Feb 7 15:06:14 CET 2007
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv26561
Modified Files:
check_swap.c
Log Message:
Include <sys/param.h> before <sys/swap.h> in order to fix compilation on
OpenBSD (nsturm - 1653934)
Index: check_swap.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_swap.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- check_swap.c 28 Jan 2007 21:46:40 -0000 1.58
+++ check_swap.c 7 Feb 2007 14:06:11 -0000 1.59
@@ -42,15 +42,15 @@
#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
More information about the Commits
mailing list