Commit 6cf98a45 authored by Alex Brainman's avatar Alex Brainman

net: fix windows build

R=golang-dev, r2
CC=golang-dev
https://golang.org/cl/4184051
parent a5ff8ad9
......@@ -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,
......
......@@ -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
......
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