1
0
mirror of https://github.com/golang/go synced 2024-11-22 02:54:39 -07:00

syscall: fix windows build

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5533063
This commit is contained in:
Mikio Hara 2012-01-10 18:27:09 -08:00 committed by Russ Cox
parent 415f15b667
commit b06514bb34
2 changed files with 16 additions and 24 deletions

View File

@ -640,22 +640,6 @@ type Linger struct {
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 {
Multiaddr [4]byte /* in_addr */
Interface [4]byte /* in_addr */

View File

@ -374,6 +374,7 @@ const (
SOCK_SEQPACKET = 5
IPPROTO_IP = 0
IPPROTO_IPV6 = 0x29
IPPROTO_TCP = 6
IPPROTO_UDP = 17
@ -387,8 +388,18 @@ const (
SO_SNDBUF = 0x1001
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_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
@ -400,9 +411,6 @@ const (
WSADESCRIPTION_LEN = 256
WSASYS_STATUS_LEN = 128
IPV6_JOIN_GROUP = 12
IPV6_LEAVE_GROUP = 13
)
type WSABuf struct {