all: adjust build tags for plan9

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick 2023-08-24 14:39:23 -07:00 committed by James Tucker
parent 88b11b4a0d
commit 6cd5922a04
No known key found for this signature in database
6 changed files with 26 additions and 5 deletions

17
ipc/uapi_fake.go Normal file
View file

@ -0,0 +1,17 @@
//go:build wasm || plan9
/* SPDX-License-Identifier: MIT
*
* Copyright (C) 2017-2023 WireGuard LLC. All Rights Reserved.
*/
package ipc
// Made up sentinel error codes for {js,wasip1}/wasm, and plan9.
const (
IpcErrorIO = 1
IpcErrorInvalid = 2
IpcErrorPortInUse = 3
IpcErrorUnknown = 4
IpcErrorProtocol = 5
)