[PATCH wireguard-go] tun: make operateonfd.go build tags more specific
Tobias Klauser
tklauser at distanz.ch
Thu Sep 23 10:07:19 UTC 2021
(*NativeTun).operateOnFd is only used on darwin and freebsd. Adjust the
build tags accordingly.
Signed-off-by: Tobias Klauser <tklauser at distanz.ch>
---
tun/operateonfd.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tun/operateonfd.go b/tun/operateonfd.go
index aab71161f27c..bc804539169f 100644
--- a/tun/operateonfd.go
+++ b/tun/operateonfd.go
@@ -1,5 +1,5 @@
-//go:build !windows
-// +build !windows
+//go:build darwin || freebsd
+// +build darwin freebsd
/* SPDX-License-Identifier: MIT
*
--
2.33.0
More information about the WireGuard
mailing list