Source
1360
1360
double str2double(const char *str);
1361
1361
1362
1362
/* time and memory size suffixes */
1363
1363
#define ZBX_UNIT_SYMBOLS "KMGTsmhdw"
1364
1364
zbx_uint64_t suffix2factor(char c);
1365
1365
1366
1366
#if defined(_WINDOWS)
1367
1367
typedef struct __stat64 zbx_stat_t;
1368
1368
int __zbx_stat(const char *path, zbx_stat_t *buf);
1369
1369
int __zbx_open(const char *pathname, int flags);
1370
+
#elif defined(__MINGW32__)
1371
+
typedef struct _stat64 zbx_stat_t;
1370
1372
#else
1371
1373
typedef struct stat zbx_stat_t;
1372
1374
#endif /* _WINDOWS */
1373
1375
1374
1376
typedef struct
1375
1377
{
1376
1378
zbx_fs_time_t modification_time; /* time of last modification */
1377
1379
zbx_fs_time_t access_time; /* time of last access */
1378
1380
zbx_fs_time_t change_time; /* time of last status change */
1379
1381
}