]> Cypherpunks repositories - gostls13.git/commitdiff
net: add stubs for NetBSD
authorBenny Siegert <bsiegert@gmail.com>
Tue, 28 Feb 2012 00:28:10 +0000 (11:28 +1100)
committerRob Pike <r@golang.org>
Tue, 28 Feb 2012 00:28:10 +0000 (11:28 +1100)
This fixes the build of package net for GOOS=NetBSD.
Of course, a real implementation would be even better.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5693065

src/pkg/net/sockoptip_netbsd.go [new file with mode: 0644]

diff --git a/src/pkg/net/sockoptip_netbsd.go b/src/pkg/net/sockoptip_netbsd.go
new file mode 100644 (file)
index 0000000..ccb9697
--- /dev/null
@@ -0,0 +1,15 @@
+// Copyright 2012 The Go Authors.  All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build netbsd
+
+package net
+
+func setIPv4MulticastInterface(fd *netFD, ifi *Interface) error {
+       panic("unimplemented")
+}
+
+func setIPv4MulticastLoopback(fd *netFD, v bool) error {
+       panic("unimplemented")
+}