summaryrefslogtreecommitdiffhomepage
path: root/tun
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2021-09-23 12:07:19 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-09-23 09:54:01 -0600
commit217ac1016bc54b47418fb606740498fcfbcfd9e6 (patch)
treeb6efcb4a7c56c40ba92c7fad6524f003ee25f56b /tun
parenteae5e0f3a3a5b08a843756093dc3bfd0f4068108 (diff)
tun: make operateonfd.go build tags more specific
(*NativeTun).operateOnFd is only used on darwin and freebsd. Adjust the build tags accordingly. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tun')
-rw-r--r--tun/operateonfd.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tun/operateonfd.go b/tun/operateonfd.go
index aab7116..bc80453 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
*