diff options
Diffstat (limited to 'plugins/common.h')
-rw-r--r-- | plugins/common.h | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/plugins/common.h b/plugins/common.h index 833479ce..35d1e549 100644 --- a/plugins/common.h +++ b/plugins/common.h | |||
@@ -31,7 +31,8 @@ | |||
31 | #ifndef _COMMON_H_ | 31 | #ifndef _COMMON_H_ |
32 | #define _COMMON_H_ | 32 | #define _COMMON_H_ |
33 | 33 | ||
34 | #include "config.h" | 34 | #include "../config.h" |
35 | #include "../lib/monitoringplug.h" | ||
35 | 36 | ||
36 | #ifdef HAVE_FEATURES_H | 37 | #ifdef HAVE_FEATURES_H |
37 | #include <features.h> | 38 | #include <features.h> |
@@ -90,16 +91,10 @@ | |||
90 | # define GET_NUMBER_OF_CPUS() -1 | 91 | # define GET_NUMBER_OF_CPUS() -1 |
91 | #endif | 92 | #endif |
92 | 93 | ||
93 | #ifdef TIME_WITH_SYS_TIME | 94 | #ifdef HAVE_SYS_TIME_H |
94 | # include <sys/time.h> | 95 | # include <sys/time.h> |
95 | # include <time.h> | ||
96 | #else | ||
97 | # ifdef HAVE_SYS_TIME_H | ||
98 | # include <sys/time.h> | ||
99 | # else | ||
100 | # include <time.h> | ||
101 | # endif | ||
102 | #endif | 96 | #endif |
97 | #include <time.h> | ||
103 | 98 | ||
104 | #ifdef HAVE_SYS_TYPES_H | 99 | #ifdef HAVE_SYS_TYPES_H |
105 | #include <sys/types.h> | 100 | #include <sys/types.h> |
@@ -115,7 +110,7 @@ | |||
115 | 110 | ||
116 | /* GNU Libraries */ | 111 | /* GNU Libraries */ |
117 | #include <getopt.h> | 112 | #include <getopt.h> |
118 | #include "dirname.h" | 113 | #include "../gl/dirname.h" |
119 | 114 | ||
120 | #include <locale.h> | 115 | #include <locale.h> |
121 | 116 | ||
@@ -185,14 +180,6 @@ enum { | |||
185 | }; | 180 | }; |
186 | 181 | ||
187 | enum { | 182 | enum { |
188 | STATE_OK, | ||
189 | STATE_WARNING, | ||
190 | STATE_CRITICAL, | ||
191 | STATE_UNKNOWN, | ||
192 | STATE_DEPENDENT | ||
193 | }; | ||
194 | |||
195 | enum { | ||
196 | DEFAULT_SOCKET_TIMEOUT = 10, /* timeout after 10 seconds */ | 183 | DEFAULT_SOCKET_TIMEOUT = 10, /* timeout after 10 seconds */ |
197 | MAX_INPUT_BUFFER = 8192, /* max size of most buffers we use */ | 184 | MAX_INPUT_BUFFER = 8192, /* max size of most buffers we use */ |
198 | MAX_HOST_ADDRESS_LENGTH = 256 /* max size of a host address */ | 185 | MAX_HOST_ADDRESS_LENGTH = 256 /* max size of a host address */ |
@@ -203,7 +190,7 @@ enum { | |||
203 | * Internationalization | 190 | * Internationalization |
204 | * | 191 | * |
205 | */ | 192 | */ |
206 | #include "gettext.h" | 193 | #include "../gl/gettext.h" |
207 | #define _(String) gettext (String) | 194 | #define _(String) gettext (String) |
208 | #if ! ENABLE_NLS | 195 | #if ! ENABLE_NLS |
209 | # undef textdomain | 196 | # undef textdomain |