Commit b7bf2a3a authored by Russ Cox's avatar Russ Cox

net: fix windows build (?)

TBR=adg
CC=golang-dev
https://golang.org/cl/4083042
parent b15c851d
...@@ -7,6 +7,7 @@ package net ...@@ -7,6 +7,7 @@ package net
import ( import (
"flag" "flag"
"regexp" "regexp"
"runtime"
"testing" "testing"
) )
...@@ -103,6 +104,9 @@ var revAddrTests = []struct { ...@@ -103,6 +104,9 @@ var revAddrTests = []struct {
} }
func TestReverseAddress(t *testing.T) { func TestReverseAddress(t *testing.T) {
if runtime.GOOS == "windows" {
return
}
for i, tt := range revAddrTests { for i, tt := range revAddrTests {
a, e := reverseaddr(tt.Addr) a, e := reverseaddr(tt.Addr)
if len(tt.ErrPrefix) > 0 && e == nil { if len(tt.ErrPrefix) > 0 && e == nil {
......
...@@ -81,3 +81,7 @@ func LookupPort(network, service string) (port int, err os.Error) { ...@@ -81,3 +81,7 @@ func LookupPort(network, service string) (port int, err os.Error) {
func isDomainName(s string) bool { func isDomainName(s string) bool {
panic("unimplemented") panic("unimplemented")
} }
func resolveaddr(addr string) (arpa string, err os.Error) {
panic("unimplemented")
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment