OSDN Git Service

syscall: Define IPV6 constants for Irix.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Jan 2012 22:37:14 +0000 (22:37 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 27 Jan 2012 22:37:14 +0000 (22:37 +0000)
From Rainer Orth.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183652 138bc75d-0d04-0410-961f-82ee72b054a4

libgo/go/syscall/socket_irix.go

index 319a67b..289769b 100644 (file)
@@ -119,3 +119,12 @@ const (
 func anyToSockaddrOS(rsa *RawSockaddrAny) (Sockaddr, error) {
        return nil, EAFNOSUPPORT
 }
+
+// <netinet/in.h.h> only provides IPV6_* etc. if  _NO_XOPEN4 && _NO_XOPEN5,
+// so as above simply provide them here.
+const (
+       IPV6_UNICAST_HOPS   = 48
+       IPV6_MULTICAST_IF   = IP_MULTICAST_IF
+       IPV6_MULTICAST_HOPS = IP_MULTICAST_TTL
+       IPV6_MULTICAST_LOOP = IP_MULTICAST_LOOP
+)