summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-27 22:37:14 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-27 22:37:14 +0000
commit58b7b49abf0e86127043191ac693fd24233ce1ef (patch)
tree5586c648ffb13c71850a918eb4a6eead5b28af98 /libgo
parent79cb6e627277c4fda6d1d7d7d50cada3f96c2765 (diff)
downloadgcc-58b7b49abf0e86127043191ac693fd24233ce1ef.tar.gz
syscall: Define IPV6 constants for Irix.
From Rainer Orth. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183652 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rw-r--r--libgo/go/syscall/socket_irix.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/libgo/go/syscall/socket_irix.go b/libgo/go/syscall/socket_irix.go
index 319a67b47c9..289769b6d3f 100644
--- a/libgo/go/syscall/socket_irix.go
+++ b/libgo/go/syscall/socket_irix.go
@@ -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
+)