Commit 5c0ad186 authored by Mikio Hara's avatar Mikio Hara

internal/socket: enable {recv,send}mmsg on NetBSD

Change-Id: Ide52e52d6859378bc12bb97081f63d657cb2a76f
Reviewed-on: https://go-review.googlesource.com/82455
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent a0df0836
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// +build go1.9 // +build go1.9
// +build linux // +build linux netbsd
package socket package socket
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// +build go1.9 // +build go1.9
// +build !linux // +build !linux,!netbsd
package socket package socket
......
...@@ -145,7 +145,7 @@ func TestUDP(t *testing.T) { ...@@ -145,7 +145,7 @@ func TestUDP(t *testing.T) {
} }
}) })
switch runtime.GOOS { switch runtime.GOOS {
case "android", "linux": case "android", "linux", "netbsd":
t.Run("Messages", func(t *testing.T) { t.Run("Messages", func(t *testing.T) {
data := []byte("HELLO-R-U-THERE") data := []byte("HELLO-R-U-THERE")
wmbs := bytes.SplitAfter(data, []byte("-")) wmbs := bytes.SplitAfter(data, []byte("-"))
...@@ -233,7 +233,7 @@ func BenchmarkUDP(b *testing.B) { ...@@ -233,7 +233,7 @@ func BenchmarkUDP(b *testing.B) {
} }
}) })
switch runtime.GOOS { switch runtime.GOOS {
case "android", "linux": case "android", "linux", "netbsd":
wms := make([]socket.Message, M) wms := make([]socket.Message, M)
for i := range wms { for i := range wms {
wms[i].Buffers = [][]byte{data} wms[i].Buffers = [][]byte{data}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment