aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--conn/default.go1
-rw-r--r--conn/mark_default.go1
-rw-r--r--conn/mark_unix.go1
-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
-rw-r--r--ipc/uapi_bsd.go1
-rw-r--r--ipc/uapi_unix.go1
-rw-r--r--main.go1
-rw-r--r--rwcancel/rwcancel.go1
-rw-r--r--tun/operateonfd.go1
13 files changed, 15 insertions, 2 deletions
diff --git a/conn/default.go b/conn/default.go
index 161454a..97bf08c 100644
--- a/conn/default.go
+++ b/conn/default.go
@@ -1,3 +1,4 @@
+//go:build !linux && !windows
// +build !linux,!windows
/* SPDX-License-Identifier: MIT
diff --git a/conn/mark_default.go b/conn/mark_default.go
index c315f4b..91cf6a8 100644
--- a/conn/mark_default.go
+++ b/conn/mark_default.go
@@ -1,3 +1,4 @@
+//go:build !linux && !openbsd && !freebsd
// +build !linux,!openbsd,!freebsd
/* SPDX-License-Identifier: MIT
diff --git a/conn/mark_unix.go b/conn/mark_unix.go
index 18eb581..faa4245 100644
--- a/conn/mark_unix.go
+++ b/conn/mark_unix.go
@@ -1,3 +1,4 @@
+//go:build linux || openbsd || freebsd
// +build linux openbsd freebsd
/* SPDX-License-Identifier: MIT
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
diff --git a/ipc/uapi_bsd.go b/ipc/uapi_bsd.go
index 5beee9e..062f5d7 100644
--- a/ipc/uapi_bsd.go
+++ b/ipc/uapi_bsd.go
@@ -1,3 +1,4 @@
+//go:build darwin || freebsd || openbsd
// +build darwin freebsd openbsd
/* SPDX-License-Identifier: MIT
diff --git a/ipc/uapi_unix.go b/ipc/uapi_unix.go
index 544651b..48f6846 100644
--- a/ipc/uapi_unix.go
+++ b/ipc/uapi_unix.go
@@ -1,3 +1,4 @@
+//go:build linux || darwin || freebsd || openbsd
// +build linux darwin freebsd openbsd
/* SPDX-License-Identifier: MIT
diff --git a/main.go b/main.go
index 639d644..d7181b8 100644
--- a/main.go
+++ b/main.go
@@ -1,3 +1,4 @@
+//go:build !windows
// +build !windows
/* SPDX-License-Identifier: MIT
diff --git a/rwcancel/rwcancel.go b/rwcancel/rwcancel.go
index 5dff446..7013b16 100644
--- a/rwcancel/rwcancel.go
+++ b/rwcancel/rwcancel.go
@@ -1,3 +1,4 @@
+//go:build !windows
// +build !windows
/* SPDX-License-Identifier: MIT
diff --git a/tun/operateonfd.go b/tun/operateonfd.go
index a9dcaef..aab7116 100644
--- a/tun/operateonfd.go
+++ b/tun/operateonfd.go
@@ -1,3 +1,4 @@
+//go:build !windows
// +build !windows
/* SPDX-License-Identifier: MIT