diff options
author | Ton Voon <ton.voon@opsera.com> | 2010-06-17 09:16:43 (GMT) |
---|---|---|
committer | tonvoon <ton.voon@opsera.com> | 2010-06-23 13:30:34 (GMT) |
commit | 18f6835edaf7d640a2c9e476cb1babdbdadbfd9b (patch) | |
tree | ae11f40e48dc34658445c99012726f32bfb45c56 /gl/sys_stat.in.h | |
parent | f61412478ceb7c821793c8356b936f64066508bf (diff) | |
download | monitoring-plugins-18f6835edaf7d640a2c9e476cb1babdbdadbfd9b.tar.gz |
Added state retention APIs. Implemented for check_snmp with --rate option.
See http://nagiosplugin.org/c-api-private for more details on the API.
Also updated check_snmp -l option to change the perfdata label.
Diffstat (limited to 'gl/sys_stat.in.h')
-rw-r--r-- | gl/sys_stat.in.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gl/sys_stat.in.h b/gl/sys_stat.in.h index a64bf02..dc7ef51 100644 --- a/gl/sys_stat.in.h +++ b/gl/sys_stat.in.h | |||
@@ -56,7 +56,8 @@ | |||
56 | /* Before doing "#define mkdir rpl_mkdir" below, we need to include all | 56 | /* Before doing "#define mkdir rpl_mkdir" below, we need to include all |
57 | headers that may declare mkdir(). */ | 57 | headers that may declare mkdir(). */ |
58 | #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ | 58 | #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ |
59 | # include <io.h> | 59 | # include <io.h> /* mingw32, mingw64 */ |
60 | # include <direct.h> /* mingw64 */ | ||
60 | #endif | 61 | #endif |
61 | 62 | ||
62 | #ifndef S_IFMT | 63 | #ifndef S_IFMT |
@@ -455,7 +456,8 @@ _GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode)); | |||
455 | #else | 456 | #else |
456 | /* mingw's _mkdir() function has 1 argument, but we pass 2 arguments. | 457 | /* mingw's _mkdir() function has 1 argument, but we pass 2 arguments. |
457 | Additionally, it declares _mkdir (and depending on compile flags, an | 458 | Additionally, it declares _mkdir (and depending on compile flags, an |
458 | alias mkdir), only in the nonstandard <io.h>, which is included above. */ | 459 | alias mkdir), only in the nonstandard includes <direct.h> and <io.h>, |
460 | which are included above. */ | ||
459 | # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ | 461 | # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ |
460 | 462 | ||
461 | static inline int | 463 | static inline int |