瀏覽代碼

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

This reverts commit 5c0ad186f08efc9d3f81cf1861e68e70ca98198a.

Change-Id: I1b6fac0f88816f4464e732d2f8a3d5510decb255
Reviewed-on: https://go-review.googlesource.com/82697
Reviewed-by: Mikio Hara <mikioh.mikioh@gmail.com>
Mikio Hara 8 年之前
父節點
當前提交
dc871a5d77
共有 3 個文件被更改,包括 4 次插入4 次删除
  1. 1 1
      internal/socket/rawconn_mmsg.go
  2. 1 1
      internal/socket/rawconn_nommsg.go
  3. 2 2
      internal/socket/socket_go1_9_test.go

+ 1 - 1
internal/socket/rawconn_mmsg.go

@@ -3,7 +3,7 @@
 // license that can be found in the LICENSE file.
 
 // +build go1.9
-// +build linux netbsd
+// +build linux
 
 package socket
 

+ 1 - 1
internal/socket/rawconn_nommsg.go

@@ -3,7 +3,7 @@
 // license that can be found in the LICENSE file.
 
 // +build go1.9
-// +build !linux,!netbsd
+// +build !linux
 
 package socket
 

+ 2 - 2
internal/socket/socket_go1_9_test.go

@@ -145,7 +145,7 @@ func TestUDP(t *testing.T) {
 		}
 	})
 	switch runtime.GOOS {
-	case "android", "linux", "netbsd":
+	case "android", "linux":
 		t.Run("Messages", func(t *testing.T) {
 			data := []byte("HELLO-R-U-THERE")
 			wmbs := bytes.SplitAfter(data, []byte("-"))
@@ -233,7 +233,7 @@ func BenchmarkUDP(b *testing.B) {
 			}
 		})
 		switch runtime.GOOS {
-		case "android", "linux", "netbsd":
+		case "android", "linux":
 			wms := make([]socket.Message, M)
 			for i := range wms {
 				wms[i].Buffers = [][]byte{data}