Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
src/pkg/net/multicast_test.go
src/pkg/net/multicast_test.go
+4
-0
src/pkg/syscall/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,7 +703,18 @@ type Linger struct {
Linger
int32
}
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