]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
global: add new go 1.17 build comments
authorJason A. Donenfeld <Jason@zx2c4.com>
Sun, 5 Sep 2021 14:00:43 +0000 (16:00 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sun, 5 Sep 2021 14:00:43 +0000 (16:00 +0200)
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
13 files changed:
conn/default.go
conn/mark_default.go
conn/mark_unix.go
device/queueconstants_default.go
device/queueconstants_ios.go
device/race_disabled_test.go
device/race_enabled_test.go
device/sticky_default.go
ipc/uapi_bsd.go
ipc/uapi_unix.go
main.go
rwcancel/rwcancel.go
tun/operateonfd.go

index 161454a0e6c2b8125588447f3b122c75e5c2319e..97bf08c22218a78e10027f12e74697b1e50bb680 100644 (file)
@@ -1,3 +1,4 @@
+//go:build !linux && !windows
 // +build !linux,!windows
 
 /* SPDX-License-Identifier: MIT
index c315f4b36b345f976088a61c8ca4b1ebf73b1010..91cf6a8143f7234a10bbb91ee25675cdcef1f941 100644 (file)
@@ -1,3 +1,4 @@
+//go:build !linux && !openbsd && !freebsd
 // +build !linux,!openbsd,!freebsd
 
 /* SPDX-License-Identifier: MIT
index 18eb581957820da32524185a5a061a2022198594..faa42453edd5530463cb733a1bfaafdd60298bab 100644 (file)
@@ -1,3 +1,4 @@
+//go:build linux || openbsd || freebsd
 // +build linux openbsd freebsd
 
 /* SPDX-License-Identifier: MIT
index d5c6927bcad3e4fd8297ac57a5c2c403c1675d0a..fa2c0552c0e953508142cecba0ec8945c74f9016 100644 (file)
@@ -1,3 +1,4 @@
+//go:build !android && !ios && !windows
 // +build !android,!ios,!windows
 
 /* SPDX-License-Identifier: MIT
index 36c8704040a2f72af214415e58f69a53b46ca936..21a0e2663e59864647ae23de1c1abe3c428a90a6 100644 (file)
@@ -1,3 +1,4 @@
+//go:build ios
 // +build ios
 
 /* SPDX-License-Identifier: MIT
index 65fac7e47bf4e4a2514c2f7e11373f980cd9043e..6552f22e32a661aa9e26a50eceb8e21ec2cc7c4d 100644 (file)
@@ -1,4 +1,5 @@
-//+build !race
+//go:build !race
+// +build !race
 
 /* SPDX-License-Identifier: MIT
  *
index f8ccac30abf2558380a909b5938446654a28fe9c..1abba5afb87d8a71296f82ed656233ad487ec01f 100644 (file)
@@ -1,4 +1,5 @@
-//+build race
+//go:build race
+// +build race
 
 /* SPDX-License-Identifier: MIT
  *
index 1cc52f69bfd6a9e99e8c4249e6a0ded5baa61dba..fa39ac0d031e2231e24e985f1c14426320b53828 100644 (file)
@@ -1,3 +1,4 @@
+//go:build !linux
 // +build !linux
 
 package device
index 5beee9ee7ae19825be71326bd269a19693a2e9a0..062f5d77feccfc38b1161917bcd050afd7f6ccd6 100644 (file)
@@ -1,3 +1,4 @@
+//go:build darwin || freebsd || openbsd
 // +build darwin freebsd openbsd
 
 /* SPDX-License-Identifier: MIT
index 544651b6a58ede23de0ff1aa08f1a781df50abb3..48f6846ae524ab31cf690092aeff58d59e37180d 100644 (file)
@@ -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 639d64435c6a35edd2ec4d4b8c395bff9bc60074..d7181b8bc2b85fe491138e30951abceb5d0d2a14 100644 (file)
--- a/main.go
+++ b/main.go
@@ -1,3 +1,4 @@
+//go:build !windows
 // +build !windows
 
 /* SPDX-License-Identifier: MIT
index 5dff446a5f906dff732f4850d0d0cda9b8f5e47a..7013b16d8fbb1a83644fd514ddc15c08072fedbd 100644 (file)
@@ -1,3 +1,4 @@
+//go:build !windows
 // +build !windows
 
 /* SPDX-License-Identifier: MIT
index a9dcaef4cbdd9ec6785945a3708a208994055514..aab71161f27c2cc2f07ed5565b3f3daf2378f21d 100644 (file)
@@ -1,3 +1,4 @@
+//go:build !windows
 // +build !windows
 
 /* SPDX-License-Identifier: MIT