all: adjust some build tags for plan9

I'm not saying it works, but it compiles.

Updates #5794

Change-Id: I2f3c99732e67fe57a05edb25b758d083417f083e
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2023-08-24 15:02:42 -07:00
committed by Brad Fitzpatrick
parent de9ba1c621
commit 98a5116434
32 changed files with 84 additions and 17 deletions

17
net/tstun/tstun_plan9.go Normal file
View File

@@ -0,0 +1,17 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
package tstun
import (
"github.com/tailscale/wireguard-go/tun"
"tailscale.com/types/logger"
)
func New(logf logger.Logf, tunName string) (tun.Device, string, error) {
panic("not implemented")
}
func Diagnose(logf logger.Logf, tunName string, err error) {
panic("not implemented")
}

View File

@@ -1,7 +1,7 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build !wasm
//go:build !wasm && !plan9
// Package tun creates a tuntap device, working around OS-specific
// quirks if necessary.