diff options
Diffstat (limited to 'libgo/go/net/non_unix_test.go')
-rw-r--r-- | libgo/go/net/non_unix_test.go | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/libgo/go/net/non_unix_test.go b/libgo/go/net/non_unix_test.go index eddca562f98..db3427e7cb4 100644 --- a/libgo/go/net/non_unix_test.go +++ b/libgo/go/net/non_unix_test.go @@ -6,6 +6,17 @@ package net +import "runtime" + +// See unix_test.go for what these (don't) do. +func forceGoDNS() func() { + switch runtime.GOOS { + case "plan9", "windows": + return func() {} + default: + return nil + } +} + // See unix_test.go for what these (don't) do. -func forceGoDNS() func() { return func() {} } -func forceCgoDNS() bool { return false } +func forceCgoDNS() func() { return nil } |