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>
This commit is contained in:
Tobias Klauser 2021-09-23 12:07:19 +02:00 committed by Jason A. Donenfeld
parent eae5e0f3a3
commit 217ac1016b

View File

@ -1,5 +1,5 @@
//go:build !windows //go:build darwin || freebsd
// +build !windows // +build darwin freebsd
/* SPDX-License-Identifier: MIT /* SPDX-License-Identifier: MIT
* *