diff options
author | Dmitry Borovikov <git-no-replydmitry@zabbix.com> | 2009-11-17 19:58:34 +0300 |
---|---|---|
committer | Dmitry Borovikov <git-no-replydmitry@zabbix.com> | 2009-11-17 19:58:34 +0300 |
commit | 467bd80ec50ee0967e4bc1facedf28e8618378ed (patch) | |
tree | 731c67079e519cae30edf49c58ba3d9dfb9dea98 /include/zbxtypes.h | |
parent | 1469cdb20c75fd79c86b59afd458aa30ee33c2fa (diff) |
- [DEV-369] added support of file log rotation (dmitry)
Diffstat (limited to 'include/zbxtypes.h')
-rw-r--r-- | include/zbxtypes.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/zbxtypes.h b/include/zbxtypes.h index e6415746dd8..01c3ae786c0 100644 --- a/include/zbxtypes.h +++ b/include/zbxtypes.h @@ -69,6 +69,10 @@ # define uint32_t __int32 #endif /* uint32_t */ +#ifndef PATH_SEPARATOR +# define PATH_SEPARATOR '\\' +#endif /* PATH_SEPARATOR */ + #else /* _WINDOWS */ # define zbx_stat(path, buf) stat(path, buf) @@ -103,12 +107,20 @@ # define zbx_pid_t pid_t +#ifndef PATH_SEPARATOR +# define PATH_SEPARATOR '/' +#endif + #endif /* _WINDOWS */ #ifndef S_ISREG # define S_ISREG(x) (((x) & S_IFMT) == S_IFREG) #endif +#ifndef S_ISDIR +# define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR) +#endif + #define ZBX_STR2UINT64(uint,string) sscanf(string ,ZBX_FS_UI64 ,&uint); #define ZBX_OCT2UINT64(uint,string) sscanf(string ,ZBX_FS_UO64 ,&uint); #define ZBX_HEX2UINT64(uint,string) sscanf(string ,ZBX_FS_UX64 ,&uint); |