aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Eric J. Mislivec <emislivec@nagios.com> 2014-06-05 16:05:46 -0500
committerGravatar Jan Wagner <waja@cyconet.org> 2014-06-28 18:09:28 +0200
commit6e246799b939d29fe80da03ee39a24ef68f78cb0 (patch)
tree33fa821a47b18a50445c44684d03df101da9542f
parent7508da9360a77c6799e74a8109b768a1b8fbba11 (diff)
downloadmonitoring-plugins-6e246799b939d29fe80da03ee39a24ef68f78cb0.tar.gz
Include common.h before any system headers.
This should fix some problems building on AIX.
-rw-r--r--plugins/check_tcp.c3
-rw-r--r--plugins/negate.c4
2 files changed, 3 insertions, 4 deletions
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index 2714961f..ebdccd1b 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -32,13 +32,12 @@ char *progname;
const char *copyright = "1999-2008";
const char *email = "devel@monitoring-plugins.org";
-#include <ctype.h>
-
#include "common.h"
#include "netutils.h"
#include "utils.h"
#include "utils_tcp.h"
+#include <ctype.h>
#include <sys/select.h>
#ifdef HAVE_SSL
diff --git a/plugins/negate.c b/plugins/negate.c
index 4bd09deb..222d2407 100644
--- a/plugins/negate.c
+++ b/plugins/negate.c
@@ -35,12 +35,12 @@ const char *email = "devel@monitoring-plugins.org";
#define DEFAULT_TIMEOUT 11
-#include <ctype.h>
-
#include "common.h"
#include "utils.h"
#include "utils_cmd.h"
+#include <ctype.h>
+
/* char *command_line; */
static const char **process_arguments (int, char **);