mirror of
https://github.com/golang/go.git
synced 2024-10-01 07:17:21 +00:00
net: fix windows build (?)
TBR=adg CC=golang-dev https://golang.org/cl/4083042
This commit is contained in:
parent
b15c851db2
commit
b7bf2a3a0b
@ -7,6 +7,7 @@ package net
|
||||
import (
|
||||
"flag"
|
||||
"regexp"
|
||||
"runtime"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@ -103,6 +104,9 @@ var revAddrTests = []struct {
|
||||
}
|
||||
|
||||
func TestReverseAddress(t *testing.T) {
|
||||
if runtime.GOOS == "windows" {
|
||||
return
|
||||
}
|
||||
for i, tt := range revAddrTests {
|
||||
a, e := reverseaddr(tt.Addr)
|
||||
if len(tt.ErrPrefix) > 0 && e == nil {
|
||||
|
@ -81,3 +81,7 @@ func LookupPort(network, service string) (port int, err os.Error) {
|
||||
func isDomainName(s string) bool {
|
||||
panic("unimplemented")
|
||||
}
|
||||
|
||||
func resolveaddr(addr string) (arpa string, err os.Error) {
|
||||
panic("unimplemented")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user