diff --git a/build/win32/project/Makefile_agent b/build/win32/project/Makefile_agent index cb38581..f419d09 100644 --- a/build/win32/project/Makefile_agent +++ b/build/win32/project/Makefile_agent @@ -81,6 +81,7 @@ OBJS = \ ..\..\..\src\libs\zbxsysinfo\common\http_metrics.o \ ..\..\..\src\libs\zbxhttp\punycode.o \ ..\..\..\src\libs\zbxhttp\urlencode.o \ + ..\..\..\src\libs\zbxhttp\charset.o \ ..\..\..\src\libs\zbxsysinfo\agent\agent.o \ ..\..\..\src\libs\zbxsysinfo\agent\modbus.o \ ..\..\..\src\libs\zbxsysinfo\common\zbxsysinfo_common.o \ diff --git a/src/libs/zbxhttp/http.c b/src/libs/zbxhttp/http.c index 3ebee33..df6812d 100644 --- a/src/libs/zbxhttp/http.c +++ b/src/libs/zbxhttp/http.c @@ -25,6 +25,7 @@ #include "zbxstr.h" #include "zbxdbhigh.h" #include "zbxtime.h" +#include "zbxthreads.h" #ifdef HAVE_LIBCURL @@ -624,7 +625,7 @@ next_attempt: context->body.offset = 0; if (0 != attempt_interval && 1 < context->max_attempts) - sleep((unsigned int)attempt_interval); + zbx_sleep((unsigned int)attempt_interval); } while (0 < --context->max_attempts);