aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@tailscale.com>2023-06-11 16:10:38 -0700
committerJason A. Donenfeld <Jason@zx2c4.com>2023-07-04 15:54:42 +0200
commit6e755e132ac18b44625baae0b7ea7ced572d7ff5 (patch)
tree8c7b9ff39ebad39f9f736ce16c91dfb7a9b071bd
parentconn: windows: add missing return statement in DstToString AF_INET (diff)
downloadwireguard-go-6e755e132ac18b44625baae0b7ea7ced572d7ff5.tar.xz
wireguard-go-6e755e132ac18b44625baae0b7ea7ced572d7ff5.zip
all: adjust build tags for wasip1/wasm
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--conn/controlfns_unix.go2
-rw-r--r--ipc/uapi_wasm.go (renamed from ipc/uapi_js.go)2
-rw-r--r--rwcancel/rwcancel.go2
-rw-r--r--rwcancel/rwcancel_stub.go2
4 files changed, 4 insertions, 4 deletions
diff --git a/conn/controlfns_unix.go b/conn/controlfns_unix.go
index c4536d4..91692c0 100644
--- a/conn/controlfns_unix.go
+++ b/conn/controlfns_unix.go
@@ -1,4 +1,4 @@
-//go:build !windows && !linux && !js
+//go:build !windows && !linux && !wasm
/* SPDX-License-Identifier: MIT
*
diff --git a/ipc/uapi_js.go b/ipc/uapi_wasm.go
index 2570515..fa84684 100644
--- a/ipc/uapi_js.go
+++ b/ipc/uapi_wasm.go
@@ -5,7 +5,7 @@
package ipc
-// Made up sentinel error codes for the js/wasm platform.
+// Made up sentinel error codes for {js,wasip1}/wasm.
const (
IpcErrorIO = 1
IpcErrorInvalid = 2
diff --git a/rwcancel/rwcancel.go b/rwcancel/rwcancel.go
index 63e1510..e397c0e 100644
--- a/rwcancel/rwcancel.go
+++ b/rwcancel/rwcancel.go
@@ -1,4 +1,4 @@
-//go:build !windows && !js
+//go:build !windows && !wasm
/* SPDX-License-Identifier: MIT
*
diff --git a/rwcancel/rwcancel_stub.go b/rwcancel/rwcancel_stub.go
index 182940b..2a98b2b 100644
--- a/rwcancel/rwcancel_stub.go
+++ b/rwcancel/rwcancel_stub.go
@@ -1,4 +1,4 @@
-//go:build windows || js
+//go:build windows || wasm
// SPDX-License-Identifier: MIT