]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
tun: make operateonfd.go build tags more specific
authorTobias Klauser <tklauser@distanz.ch>
Thu, 23 Sep 2021 10:07:19 +0000 (12:07 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 23 Sep 2021 15:54:01 +0000 (09:54 -0600)
(*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>
tun/operateonfd.go

index aab71161f27c2cc2f07ed5565b3f3daf2378f21d..bc804539169f484df97831a0cfe1607006fe810b 100644 (file)
@@ -1,5 +1,5 @@
-//go:build !windows
-// +build !windows
+//go:build darwin || freebsd
+// +build darwin freebsd
 
 /* SPDX-License-Identifier: MIT
  *