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
6cf98a45
Commit
6cf98a45
authored
Feb 17, 2011
by
Alex Brainman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: fix windows build
R=golang-dev, r2 CC=golang-dev
https://golang.org/cl/4184051
parent
a5ff8ad9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
multicast_test.go
src/pkg/net/multicast_test.go
+4
-0
syscall_windows.go
src/pkg/syscall/syscall_windows.go
+13
-2
No files found.
src/pkg/net/multicast_test.go
View file @
6cf98a45
...
...
@@ -5,10 +5,14 @@
package
net
import
(
"runtime"
"testing"
)
func
TestMulticastJoinAndLeave
(
t
*
testing
.
T
)
{
if
runtime
.
GOOS
==
"windows"
{
return
}
addr
:=
&
UDPAddr
{
IP
:
IPv4zero
,
Port
:
0
,
...
...
src/pkg/syscall/syscall_windows.go
View file @
6cf98a45
...
...
@@ -703,8 +703,19 @@ type Linger struct {
Linger
int32
}
func
SetsockoptLinger
(
fd
,
level
,
opt
int
,
l
*
Linger
)
(
errno
int
)
{
return
EWINDOWS
}
func
BindToDevice
(
fd
int
,
device
string
)
(
errno
int
)
{
return
EWINDOWS
}
const
(
IP_ADD_MEMBERSHIP
=
iota
IP_DROP_MEMBERSHIP
)
type
IpMreq
struct
{
Multiaddr
[
4
]
byte
/* in_addr */
Interface
[
4
]
byte
/* in_addr */
}
func
SetsockoptLinger
(
fd
,
level
,
opt
int
,
l
*
Linger
)
(
errno
int
)
{
return
EWINDOWS
}
func
SetsockoptIpMreq
(
fd
,
level
,
opt
int
,
mreq
*
IpMreq
)
(
errno
int
)
{
return
EWINDOWS
}
func
BindToDevice
(
fd
int
,
device
string
)
(
errno
int
)
{
return
EWINDOWS
}
// TODO(brainman): fix all needed for os
...
...
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