From 6aa6bf0be62febaa408ae13540b88b97fd470fd2 Mon Sep 17 00:00:00 2001 From: Sven Rebhan <36194019+srebhan@users.noreply.github.com> Date: Wed, 8 Dec 2021 23:10:31 +0100 Subject: [PATCH] fix: Make telegraf compile on Windows with golang 1.16.2 (#10246) (cherry picked from commit 31cbd2e504ad0a053a06b7669592009295c6a57e) --- plugins/inputs/modbus/configuration.go | 1 + plugins/inputs/modbus/configuration_original.go | 1 + plugins/inputs/modbus/modbus.go | 1 + plugins/inputs/modbus/modbus_openbsd.go | 1 + plugins/inputs/modbus/modbus_test.go | 1 + plugins/inputs/modbus/request.go | 1 + plugins/inputs/modbus/type_conversions.go | 1 + plugins/inputs/modbus/type_conversions16.go | 1 + plugins/inputs/modbus/type_conversions32.go | 1 + plugins/inputs/modbus/type_conversions64.go | 1 + 10 files changed, 10 insertions(+) diff --git a/plugins/inputs/modbus/configuration.go b/plugins/inputs/modbus/configuration.go index 143f12867dea6..30b86271cd4ad 100644 --- a/plugins/inputs/modbus/configuration.go +++ b/plugins/inputs/modbus/configuration.go @@ -1,4 +1,5 @@ //go:build !openbsd +// +build !openbsd package modbus diff --git a/plugins/inputs/modbus/configuration_original.go b/plugins/inputs/modbus/configuration_original.go index 78861df74e0f7..329073b90ea16 100644 --- a/plugins/inputs/modbus/configuration_original.go +++ b/plugins/inputs/modbus/configuration_original.go @@ -1,4 +1,5 @@ //go:build !openbsd +// +build !openbsd package modbus diff --git a/plugins/inputs/modbus/modbus.go b/plugins/inputs/modbus/modbus.go index 02add97429a85..1d9e24fff4bdb 100644 --- a/plugins/inputs/modbus/modbus.go +++ b/plugins/inputs/modbus/modbus.go @@ -1,4 +1,5 @@ //go:build !openbsd +// +build !openbsd package modbus diff --git a/plugins/inputs/modbus/modbus_openbsd.go b/plugins/inputs/modbus/modbus_openbsd.go index 6cc2bfeb3b8fd..c4df661dfbf23 100644 --- a/plugins/inputs/modbus/modbus_openbsd.go +++ b/plugins/inputs/modbus/modbus_openbsd.go @@ -1,3 +1,4 @@ //go:build openbsd +// +build openbsd package modbus diff --git a/plugins/inputs/modbus/modbus_test.go b/plugins/inputs/modbus/modbus_test.go index 4f9f4eca39434..38a7a0b16ff8b 100644 --- a/plugins/inputs/modbus/modbus_test.go +++ b/plugins/inputs/modbus/modbus_test.go @@ -1,4 +1,5 @@ //go:build !openbsd +// +build !openbsd package modbus diff --git a/plugins/inputs/modbus/request.go b/plugins/inputs/modbus/request.go index b2a31d9dcf4d3..c707b7d8ffbef 100644 --- a/plugins/inputs/modbus/request.go +++ b/plugins/inputs/modbus/request.go @@ -1,4 +1,5 @@ //go:build !openbsd +// +build !openbsd package modbus diff --git a/plugins/inputs/modbus/type_conversions.go b/plugins/inputs/modbus/type_conversions.go index 88c4b7465a824..55acdfecf544b 100644 --- a/plugins/inputs/modbus/type_conversions.go +++ b/plugins/inputs/modbus/type_conversions.go @@ -1,4 +1,5 @@ //go:build !openbsd +// +build !openbsd package modbus diff --git a/plugins/inputs/modbus/type_conversions16.go b/plugins/inputs/modbus/type_conversions16.go index 088a5d10c445a..b6eb43907cf52 100644 --- a/plugins/inputs/modbus/type_conversions16.go +++ b/plugins/inputs/modbus/type_conversions16.go @@ -1,4 +1,5 @@ //go:build !openbsd +// +build !openbsd package modbus diff --git a/plugins/inputs/modbus/type_conversions32.go b/plugins/inputs/modbus/type_conversions32.go index 260a3dc065f70..80f7ee6a0c6c7 100644 --- a/plugins/inputs/modbus/type_conversions32.go +++ b/plugins/inputs/modbus/type_conversions32.go @@ -1,4 +1,5 @@ //go:build !openbsd +// +build !openbsd package modbus diff --git a/plugins/inputs/modbus/type_conversions64.go b/plugins/inputs/modbus/type_conversions64.go index 55b0a0775c701..feef4112b7f2c 100644 --- a/plugins/inputs/modbus/type_conversions64.go +++ b/plugins/inputs/modbus/type_conversions64.go @@ -1,4 +1,5 @@ //go:build !openbsd +// +build !openbsd package modbus