Commit e44d7e39 by Ian Lance Taylor

syscall: Don't define IPMreq in socket_irix.go.

From Rainer Orth.

From-SVN: r182549
parent d48be5df
...@@ -74,17 +74,9 @@ func BindToDevice(fd int, device string) (err error) { ...@@ -74,17 +74,9 @@ func BindToDevice(fd int, device string) (err error) {
return ENOSYS return ENOSYS
} }
// struct ip_mreg is provived in <netinet/in.h>, but protected with _SGIAPI. // <netdb.h> only provides struct addrinfo, AI_* and EAI_* if _NO_XOPEN4
// This could be enabled with -D_SGI_SOURCE, but conflicts with // && _NO_XOPEN5, but -D_XOPEN_SOURCE=500 is required for msg_control etc.
// -D_XOPEN_SOURCE=500 required for msg_control etc. in struct msghgr, so // in struct msghgr, so simply provide them here.
// simply provide it here.
type IPMreq struct {
Multiaddr [4]byte
Interface [4]byte
}
// Similarly, <netdb.h> only provides struct addrinfo, AI_* and EAI_* if
// _NO_XOPEN4 && _NO_XOPEN5.
type Addrinfo struct { type Addrinfo struct {
Ai_flags int32 Ai_flags int32
Ai_family int32 Ai_family int32
......
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