Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
b7bf2a3a
Commit
b7bf2a3a
authored
Jan 20, 2011
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: fix windows build (?)
TBR=adg CC=golang-dev
https://golang.org/cl/4083042
parent
b15c851d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
net_test.go
src/pkg/net/net_test.go
+4
-0
resolv_windows.go
src/pkg/net/resolv_windows.go
+4
-0
No files found.
src/pkg/net/net_test.go
View file @
b7bf2a3a
...
...
@@ -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
{
...
...
src/pkg/net/resolv_windows.go
View file @
b7bf2a3a
...
...
@@ -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"
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment