Skip to content

Commit

Permalink
fix: Make telegraf compile on Windows with golang 1.16.2 (#10246)
Browse files Browse the repository at this point in the history
  • Loading branch information
srebhan authored Dec 8, 2021
1 parent 4c38c38 commit 31cbd2e
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/inputs/modbus/configuration.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//go:build !openbsd
// +build !openbsd

package modbus

Expand Down
1 change: 1 addition & 0 deletions plugins/inputs/modbus/configuration_register.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//go:build !openbsd
// +build !openbsd

package modbus

Expand Down
3 changes: 3 additions & 0 deletions plugins/inputs/modbus/configuration_request.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build !openbsd
// +build !openbsd

package modbus

import (
Expand Down
1 change: 1 addition & 0 deletions plugins/inputs/modbus/modbus.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//go:build !openbsd
// +build !openbsd

package modbus

Expand Down
1 change: 1 addition & 0 deletions plugins/inputs/modbus/modbus_openbsd.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build openbsd
// +build openbsd

package modbus
1 change: 1 addition & 0 deletions plugins/inputs/modbus/modbus_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//go:build !openbsd
// +build !openbsd

package modbus

Expand Down
1 change: 1 addition & 0 deletions plugins/inputs/modbus/request.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//go:build !openbsd
// +build !openbsd

package modbus

Expand Down
1 change: 1 addition & 0 deletions plugins/inputs/modbus/type_conversions.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//go:build !openbsd
// +build !openbsd

package modbus

Expand Down
1 change: 1 addition & 0 deletions plugins/inputs/modbus/type_conversions16.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//go:build !openbsd
// +build !openbsd

package modbus

Expand Down
1 change: 1 addition & 0 deletions plugins/inputs/modbus/type_conversions32.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//go:build !openbsd
// +build !openbsd

package modbus

Expand Down
1 change: 1 addition & 0 deletions plugins/inputs/modbus/type_conversions64.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//go:build !openbsd
// +build !openbsd

package modbus

Expand Down

0 comments on commit 31cbd2e

Please sign in to comment.