From 6317107547879aef0edfee6e847fc6ad7835ec32 Mon Sep 17 00:00:00 2001 From: Andrejs Sitals Date: Thu, 20 Dec 2018 11:43:25 +0000 Subject: ...G...... [ZBX-15225] improved handling of timeouts in "vfs.dir.size" and "vfs.dir.count" items on Windows agent --- include/sysinfo.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/sysinfo.h') diff --git a/include/sysinfo.h b/include/sysinfo.h index b1592168c14..60d704ce08e 100644 --- a/include/sysinfo.h +++ b/include/sysinfo.h @@ -285,7 +285,11 @@ int VM_VMEMORY_SIZE(AGENT_REQUEST *request, AGENT_RESULT *result); int SYSTEM_STAT(AGENT_REQUEST *request, AGENT_RESULT *result); #endif +#ifdef _WINDOWS +typedef int (*zbx_metric_func_t)(AGENT_REQUEST *request, AGENT_RESULT *result, HANDLE timeout_event); +#else typedef int (*zbx_metric_func_t)(AGENT_REQUEST *request, AGENT_RESULT *result); +#endif typedef struct { -- cgit v1.2.3