net: separate NaCl dependent placeholders from BSD's
To clarify the dependency of NaCl platform.
LGTM=adg
R=golang-codereviews, adg
CC=golang-codereviews
https://golang.org/cl/143830044
diff --git a/src/net/tcpsockopt_stub.go b/src/net/tcpsockopt_stub.go
index 346293c..b413a76 100644
--- a/src/net/tcpsockopt_stub.go
+++ b/src/net/tcpsockopt_stub.go
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-// +build nacl openbsd
+// +build nacl
package net
@@ -11,8 +11,10 @@
"time"
)
+func setNoDelay(fd *netFD, noDelay bool) error {
+ return syscall.ENOPROTOOPT
+}
+
func setKeepAlivePeriod(fd *netFD, d time.Duration) error {
- // NaCl and OpenBSD have no user-settable per-socket TCP
- // keepalive options.
return syscall.ENOPROTOOPT
}