Skip to content

Commit 226b21b

Browse files
committed
Fix build on wasm
1 parent 8e4e73d commit 226b21b

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

control_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build !windows
1+
// +build !windows,!wasm
22

33
package reuseport
44

control_wasm.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package reuseport
2+
3+
import (
4+
"syscall"
5+
)
6+
7+
func Control(network, address string, c syscall.RawConn) error {
8+
return nil
9+
}

0 commit comments

Comments
 (0)