diff options
| author | Eric J. Mislivec <emislivec@nagios.com> | 2014-06-05 16:05:46 -0500 |
|---|---|---|
| committer | Jan Wagner <waja@cyconet.org> | 2014-06-28 18:09:28 +0200 |
| commit | 6e246799b939d29fe80da03ee39a24ef68f78cb0 (patch) | |
| tree | 33fa821a47b18a50445c44684d03df101da9542f | |
| parent | 7508da9360a77c6799e74a8109b768a1b8fbba11 (diff) | |
| download | monitoring-plugins-6e24679.tar.gz | |
Include common.h before any system headers.
This should fix some problems building on AIX.
| -rw-r--r-- | plugins/check_tcp.c | 3 | ||||
| -rw-r--r-- | plugins/negate.c | 4 |
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; | |||
| 32 | const char *copyright = "1999-2008"; | 32 | const char *copyright = "1999-2008"; |
| 33 | const char *email = "devel@monitoring-plugins.org"; | 33 | const char *email = "devel@monitoring-plugins.org"; |
| 34 | 34 | ||
| 35 | #include <ctype.h> | ||
| 36 | |||
| 37 | #include "common.h" | 35 | #include "common.h" |
| 38 | #include "netutils.h" | 36 | #include "netutils.h" |
| 39 | #include "utils.h" | 37 | #include "utils.h" |
| 40 | #include "utils_tcp.h" | 38 | #include "utils_tcp.h" |
| 41 | 39 | ||
| 40 | #include <ctype.h> | ||
| 42 | #include <sys/select.h> | 41 | #include <sys/select.h> |
| 43 | 42 | ||
| 44 | #ifdef HAVE_SSL | 43 | #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"; | |||
| 35 | 35 | ||
| 36 | #define DEFAULT_TIMEOUT 11 | 36 | #define DEFAULT_TIMEOUT 11 |
| 37 | 37 | ||
| 38 | #include <ctype.h> | ||
| 39 | |||
| 40 | #include "common.h" | 38 | #include "common.h" |
| 41 | #include "utils.h" | 39 | #include "utils.h" |
| 42 | #include "utils_cmd.h" | 40 | #include "utils_cmd.h" |
| 43 | 41 | ||
| 42 | #include <ctype.h> | ||
| 43 | |||
| 44 | /* char *command_line; */ | 44 | /* char *command_line; */ |
| 45 | 45 | ||
| 46 | static const char **process_arguments (int, char **); | 46 | static const char **process_arguments (int, char **); |
