Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions common/buf/readv_posix.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !windows && !wasm && !illumos
// +build !windows,!wasm,!illumos
//go:build !windows && !wasm && !illumos && !openbsd
// +build !windows,!wasm,!illumos,!openbsd

package buf

Expand Down
4 changes: 2 additions & 2 deletions common/buf/readv_reader.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !wasm
// +build !wasm
//go:build !wasm && !openbsd
// +build !wasm,!openbsd

package buf

Expand Down
17 changes: 17 additions & 0 deletions common/buf/readv_reader_stub.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//go:build wasm || openbsd
// +build wasm openbsd

package buf

import (
"io"
"syscall"

"github.com/xtls/xray-core/features/stats"
)

const useReadv = false

func NewReadVReader(reader io.Reader, rawConn syscall.RawConn, counter stats.Counter) Reader {
panic("not implemented")
}
15 changes: 0 additions & 15 deletions common/buf/readv_reader_wasm.go

This file was deleted.

4 changes: 2 additions & 2 deletions common/buf/readv_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//go:build !wasm
// +build !wasm
//go:build !wasm && !openbsd
// +build !wasm,!openbsd

package buf_test

Expand Down