Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'include/zbxtypes.h')
-rw-r--r--include/zbxtypes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/zbxtypes.h b/include/zbxtypes.h
index b3aaa71fe60..fa300cb9508 100644
--- a/include/zbxtypes.h
+++ b/include/zbxtypes.h
@@ -74,6 +74,9 @@
# define strcasecmp lstrcmpiA
+typedef __int64 zbx_offset_t;
+#define zbx_lseek(fd, offset, whence) _lseeki64(fd, (zbx_offset_t)(offset), whence)
+
#else /* _WINDOWS */
# define zbx_stat(path, buf) stat(path, buf)
@@ -110,6 +113,9 @@
# define PATH_SEPARATOR '/'
#endif
+typedef off_t zbx_offset_t;
+#define zbx_lseek(fd, offset, whence) lseek(fd, (zbx_offset_t)(offset), whence)
+
#endif /* _WINDOWS */
#define ZBX_FS_SIZE_T ZBX_FS_UI64