Explorar o código

Merge pull request #41 from nagios-plugins/aix_build_fix

Include common.h before any system headers.
abrist %!s(int64=11) %!d(string=hai) anos
pai
achega
8620755e2e
Modificáronse 2 ficheiros con 3 adicións e 4 borrados
  1. 1 2
      plugins/check_tcp.c
  2. 2 2
      plugins/negate.c

+ 1 - 2
plugins/check_tcp.c

@@ -32,13 +32,12 @@ char *progname;
 const char *copyright = "1999-2014";
 const char *copyright = "1999-2014";
 const char *email = "devel@nagios-plugins.org";
 const char *email = "devel@nagios-plugins.org";
 
 
-#include <ctype.h>
-
 #include "common.h"
 #include "common.h"
 #include "netutils.h"
 #include "netutils.h"
 #include "utils.h"
 #include "utils.h"
 #include "utils_tcp.h"
 #include "utils_tcp.h"
 
 
+#include <ctype.h>
 #include <sys/select.h>
 #include <sys/select.h>
 
 
 #ifdef HAVE_SSL
 #ifdef HAVE_SSL

+ 2 - 2
plugins/negate.c

@@ -35,12 +35,12 @@ const char *email = "devel@nagios-plugins.org";
 
 
 #define DEFAULT_TIMEOUT 11
 #define DEFAULT_TIMEOUT 11
 
 
-#include <ctype.h>
-
 #include "common.h"
 #include "common.h"
 #include "utils.h"
 #include "utils.h"
 #include "utils_cmd.h"
 #include "utils_cmd.h"
 
 
+#include <ctype.h>
+
 /* char *command_line; */
 /* char *command_line; */
 
 
 static const char **process_arguments (int, char **);
 static const char **process_arguments (int, char **);