Commit b06514bb authored by Mikio Hara's avatar Mikio Hara Committed by Russ Cox

syscall: fix windows build

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5533063
parent 415f15b6
...@@ -640,22 +640,6 @@ type Linger struct { ...@@ -640,22 +640,6 @@ type Linger struct {
Linger int32 Linger int32
} }
const (
IP_TOS = 0x3
IP_TTL = 0x4
IP_ADD_MEMBERSHIP = 0xc
IP_DROP_MEMBERSHIP = 0xd
)
const (
IPV6_UNICAST_HOPS = 0x4
IPV6_MULTICAST_IF = 0x9
IPV6_MULTICAST_HOPS = 0xa
IPV6_MULTICAST_LOOP = 0xb
IPV6_JOIN_GROUP = 0xc
IPV6_LEAVE_GROUP = 0xd
)
type IPMreq struct { type IPMreq struct {
Multiaddr [4]byte /* in_addr */ Multiaddr [4]byte /* in_addr */
Interface [4]byte /* in_addr */ Interface [4]byte /* in_addr */
......
...@@ -374,6 +374,7 @@ const ( ...@@ -374,6 +374,7 @@ const (
SOCK_SEQPACKET = 5 SOCK_SEQPACKET = 5
IPPROTO_IP = 0 IPPROTO_IP = 0
IPPROTO_IPV6 = 0x29
IPPROTO_TCP = 6 IPPROTO_TCP = 6
IPPROTO_UDP = 17 IPPROTO_UDP = 17
...@@ -387,8 +388,18 @@ const ( ...@@ -387,8 +388,18 @@ const (
SO_SNDBUF = 0x1001 SO_SNDBUF = 0x1001
SO_UPDATE_ACCEPT_CONTEXT = 0x700b SO_UPDATE_ACCEPT_CONTEXT = 0x700b
IPPROTO_IPV6 = 0x29 IP_TOS = 0x3
IP_TTL = 0x4
IP_ADD_MEMBERSHIP = 0xc
IP_DROP_MEMBERSHIP = 0xd
IPV6_V6ONLY = 0x1b IPV6_V6ONLY = 0x1b
IPV6_UNICAST_HOPS = 0x4
IPV6_MULTICAST_IF = 0x9
IPV6_MULTICAST_HOPS = 0xa
IPV6_MULTICAST_LOOP = 0xb
IPV6_JOIN_GROUP = 0xc
IPV6_LEAVE_GROUP = 0xd
SOMAXCONN = 0x7fffffff SOMAXCONN = 0x7fffffff
...@@ -400,9 +411,6 @@ const ( ...@@ -400,9 +411,6 @@ const (
WSADESCRIPTION_LEN = 256 WSADESCRIPTION_LEN = 256
WSASYS_STATUS_LEN = 128 WSASYS_STATUS_LEN = 128
IPV6_JOIN_GROUP = 12
IPV6_LEAVE_GROUP = 13
) )
type WSABuf struct { type WSABuf struct {
......
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