summaryrefslogtreecommitdiffhomepage
path: root/rwcancel
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@tailscale.com>2021-10-20 08:56:39 -0700
committerJason A. Donenfeld <Jason@zx2c4.com>2021-10-20 14:50:05 -0600
commit82e0b734e5d28f96205de65fd2179e08fd91b1db (patch)
tree1f7306f3dea903a6d3baf09eafadeeb1a891dc0e /rwcancel
parentfdf57a1fa4821c3d82c79325d00f00062ffde699 (diff)
ipc, rwcancel: compile on js/wasm
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Diffstat (limited to 'rwcancel')
-rw-r--r--rwcancel/rwcancel.go2
-rw-r--r--rwcancel/rwcancel_stub.go (renamed from rwcancel/rwcancel_windows.go)2
2 files changed, 3 insertions, 1 deletions
diff --git a/rwcancel/rwcancel.go b/rwcancel/rwcancel.go
index 59bbe57..c3b2299 100644
--- a/rwcancel/rwcancel.go
+++ b/rwcancel/rwcancel.go
@@ -1,4 +1,4 @@
-//go:build !windows
+//go:build !windows && !js
/* SPDX-License-Identifier: MIT
*
diff --git a/rwcancel/rwcancel_windows.go b/rwcancel/rwcancel_stub.go
index 0316911..fae47b4 100644
--- a/rwcancel/rwcancel_windows.go
+++ b/rwcancel/rwcancel_stub.go
@@ -1,3 +1,5 @@
+//go:build windows || js
+
// SPDX-License-Identifier: MIT
package rwcancel