Commit 8cdd7d14 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

net: fix build

https://golang.org/cl/16953 broke the world.

Change-Id: I7cbd4105338ff896bd0c8f69a0b126b6272be2e5
Reviewed-on: https://go-review.googlesource.com/17914Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 53a20713
...@@ -4,11 +4,8 @@ ...@@ -4,11 +4,8 @@
package net package net
import "time"
var ( var (
testHookDialTCP = dialTCP testHookDialTCP = dialTCP
testHookDNSDialer = func(d time.Duration) dnsDialer { return &Dialer{Timeout: d} }
testHookHostsPath = "/etc/hosts" testHookHostsPath = "/etc/hosts"
testHookLookupIP = func(fn func(string) ([]IPAddr, error), host string) ([]IPAddr, error) { return fn(host) } testHookLookupIP = func(fn func(string) ([]IPAddr, error), host string) ([]IPAddr, error) { return fn(host) }
testHookSetKeepAlive = func() {} testHookSetKeepAlive = func() {}
......
...@@ -6,10 +6,14 @@ ...@@ -6,10 +6,14 @@
package net package net
import "syscall" import (
"syscall"
"time"
)
var ( var (
testHookDialChannel = func() {} // see golang.org/issue/5349 testHookDialChannel = func() {} // see golang.org/issue/5349
testHookDNSDialer = func(d time.Duration) dnsDialer { return &Dialer{Timeout: d} }
// Placeholders for socket system calls. // Placeholders for socket system calls.
socketFunc func(int, int, int) (int, error) = syscall.Socket socketFunc func(int, int, int) (int, error) = syscall.Socket
......
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