From 217ac1016bc54b47418fb606740498fcfbcfd9e6 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Thu, 23 Sep 2021 12:07:19 +0200 Subject: [PATCH] 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 Signed-off-by: Jason A. Donenfeld --- tun/operateonfd.go | 4 ++-- 1 file 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 *