diff options
Diffstat (limited to 'src/go/pkg/zbxlib/globals_windows.go')
-rw-r--r-- | src/go/pkg/zbxlib/globals_windows.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/go/pkg/zbxlib/globals_windows.go b/src/go/pkg/zbxlib/globals_windows.go index 126123dc817..f01106f489f 100644 --- a/src/go/pkg/zbxlib/globals_windows.go +++ b/src/go/pkg/zbxlib/globals_windows.go @@ -23,7 +23,7 @@ package zbxlib #include "zbxstr.h" #include "zbxsysinfo.h" #include "zbxcomms.h" -#include "perfmon.h" +#include "zbxwin32.h" #include "../src/zabbix_agent/metrics.h" #cgo LDFLAGS: -Wl,--start-group @@ -49,6 +49,7 @@ package zbxlib #cgo LDFLAGS: ${SRCDIR}/../../../../build/mingw/output/md5.o #cgo LDFLAGS: ${SRCDIR}/../../../../build/mingw/output/sysinfo.o #cgo LDFLAGS: ${SRCDIR}/../../../../build/mingw/output/vector.o +#cgo LDFLAGS: ${SRCDIR}/../../../../build/mingw/output/hashset.o #cgo LDFLAGS: ${SRCDIR}/../../../../build/mingw/output/zbxregexp.o #cgo LDFLAGS: ${SRCDIR}/../../../../build/mingw/output/algodefs.o #cgo LDFLAGS: ${SRCDIR}/../../../../build/mingw/output/persistent_state.o @@ -56,6 +57,7 @@ package zbxlib #cgo LDFLAGS: ${SRCDIR}/../../../../build/mingw/output/json.o #cgo LDFLAGS: ${SRCDIR}/../../../../build/mingw/output/json_parser.o #cgo LDFLAGS: ${SRCDIR}/../../../../build/mingw/output/jsonpath.o +#cgo LDFLAGS: ${SRCDIR}/../../../../build/mingw/output/jsonobj.o #cgo LDFLAGS: ${SRCDIR}/../../../../build/mingw/output/sha256crypt.o #cgo LDFLAGS: ${SRCDIR}/../../../../build/mingw/output/variant.o #cgo LDFLAGS: ${SRCDIR}/../../../../build/mingw/output/sysinfo_system.o @@ -115,18 +117,18 @@ char *strerror_from_system(unsigned long error) return utf8_string; } -int PERF_COUNTER(AGENT_REQUEST *request, AGENT_RESULT *result) +int perf_counter(AGENT_REQUEST *request, AGENT_RESULT *result) { SET_MSG_RESULT(result, zbx_strdup(NULL, "Not supported.")); return SYSINFO_RET_FAIL; } -DWORD get_builtin_counter_index(zbx_builtin_counter_ref_t counter_ref) +DWORD zbx_get_builtin_counter_index(zbx_builtin_counter_ref_t counter_ref) { return 0; } -DWORD get_builtin_object_index(zbx_builtin_counter_ref_t object_ref) +DWORD zbx_get_builtin_object_index(zbx_builtin_counter_ref_t object_ref) { return 0; } |