diff --git a/src/pkg/net/Makefile b/src/pkg/net/Makefile index cc895f75680..8e634d6a56c 100644 --- a/src/pkg/net/Makefile +++ b/src/pkg/net/Makefile @@ -86,11 +86,13 @@ GOFILES_linux+=cgo_stub.go endif GOFILES_openbsd=\ - dnsclient.go\ + dnsclient_unix.go\ dnsconfig.go\ fd.go\ file.go\ interface_bsd.go\ + interface_openbsd.go\ + lookup_unix.go\ newpollserver.go\ port.go\ sendfile_stub.go\ diff --git a/src/pkg/net/interface_openbsd.go b/src/pkg/net/interface_openbsd.go new file mode 100644 index 00000000000..f18149393a5 --- /dev/null +++ b/src/pkg/net/interface_openbsd.go @@ -0,0 +1,16 @@ +// Copyright 2011 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. + +// Network interface identification for OpenBSD + +package net + +import "os" + +// If the ifindex is zero, interfaceMulticastAddrTable returns +// addresses for all network interfaces. Otherwise it returns +// addresses for a specific interface. +func interfaceMulticastAddrTable(ifindex int) ([]Addr, os.Error) { + return nil, nil +}