From 6e755e132ac18b44625baae0b7ea7ced572d7ff5 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sun, 11 Jun 2023 16:10:38 -0700 Subject: [PATCH] all: adjust build tags for wasip1/wasm Signed-off-by: Brad Fitzpatrick Signed-off-by: Jason A. Donenfeld --- conn/controlfns_unix.go | 2 +- ipc/{uapi_js.go => uapi_wasm.go} | 2 +- rwcancel/rwcancel.go | 2 +- rwcancel/rwcancel_stub.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename ipc/{uapi_js.go => uapi_wasm.go} (80%) 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 similarity index 80% rename from ipc/uapi_js.go rename to 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