summaryrefslogtreecommitdiffhomepage
path: root/device
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-09-05 16:00:43 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-09-05 16:00:43 +0200
commit2ef39d47540c4537f0ddd3355fb95b33b91c09b7 (patch)
tree8c85f19b15aa7c9906b5e4f65d7fc177d6b387fc /device
parent3957e9b9dd191e0c4f7fc41d15a865357c097d9e (diff)
global: add new go 1.17 build comments
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'device')
-rw-r--r--device/queueconstants_default.go1
-rw-r--r--device/queueconstants_ios.go1
-rw-r--r--device/race_disabled_test.go3
-rw-r--r--device/race_enabled_test.go3
-rw-r--r--device/sticky_default.go1
5 files changed, 7 insertions, 2 deletions
diff --git a/device/queueconstants_default.go b/device/queueconstants_default.go
index d5c6927..fa2c055 100644
--- a/device/queueconstants_default.go
+++ b/device/queueconstants_default.go
@@ -1,3 +1,4 @@
+//go:build !android && !ios && !windows
// +build !android,!ios,!windows
/* SPDX-License-Identifier: MIT
diff --git a/device/queueconstants_ios.go b/device/queueconstants_ios.go
index 36c8704..21a0e26 100644
--- a/device/queueconstants_ios.go
+++ b/device/queueconstants_ios.go
@@ -1,3 +1,4 @@
+//go:build ios
// +build ios
/* SPDX-License-Identifier: MIT
diff --git a/device/race_disabled_test.go b/device/race_disabled_test.go
index 65fac7e..6552f22 100644
--- a/device/race_disabled_test.go
+++ b/device/race_disabled_test.go
@@ -1,4 +1,5 @@
-//+build !race
+//go:build !race
+// +build !race
/* SPDX-License-Identifier: MIT
*
diff --git a/device/race_enabled_test.go b/device/race_enabled_test.go
index f8ccac3..1abba5a 100644
--- a/device/race_enabled_test.go
+++ b/device/race_enabled_test.go
@@ -1,4 +1,5 @@
-//+build race
+//go:build race
+// +build race
/* SPDX-License-Identifier: MIT
*
diff --git a/device/sticky_default.go b/device/sticky_default.go
index 1cc52f6..fa39ac0 100644
--- a/device/sticky_default.go
+++ b/device/sticky_default.go
@@ -1,3 +1,4 @@
+//go:build !linux
// +build !linux
package device