diff options
author | User Vagrant <jebarker@gmail.com> | 2015-12-18 03:30:57 +0000 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2016-01-18 21:29:38 -0800 |
commit | 8d4d60fdda07e4f1d4877d67c47ddf8d8a679349 (patch) | |
tree | 27fc99d67f4a5cbeba8ebd5db94e90c35a019558 /src/sys | |
parent | cafd7c96f18a8beed8e1328bdabdb29f1434689f (diff) | |
download | nix-8d4d60fdda07e4f1d4877d67c47ddf8d8a679349.zip |
Disable IPV6_ADD_MEMBERSHIP on freebsd
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/socket/consts.rs | 4 | ||||
-rw-r--r-- | src/sys/socket/sockopt.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/sys/socket/consts.rs b/src/sys/socket/consts.rs index 476fffbf..4b5f7092 100644 --- a/src/sys/socket/consts.rs +++ b/src/sys/socket/consts.rs @@ -204,9 +204,9 @@ mod os { pub const IP_ADD_MEMBERSHIP: c_int = 12; pub const IP_DROP_MEMBERSHIP: c_int = 13; - #[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "netbsd", target_os = "dragonfly")))] + #[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "netbsd", target_os = "dragonfly", target_os = "freebsd")))] pub const IPV6_ADD_MEMBERSHIP: c_int = libc::IPV6_ADD_MEMBERSHIP; - #[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "netbsd", target_os = "dragonfly")))] + #[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "netbsd", target_os = "dragonfly", target_os = "freebsd")))] pub const IPV6_DROP_MEMBERSHIP: c_int = libc::IPV6_DROP_MEMBERSHIP; #[cfg(target_os = "netbsd")] diff --git a/src/sys/socket/sockopt.rs b/src/sys/socket/sockopt.rs index 0a07cdeb..ef972fc9 100644 --- a/src/sys/socket/sockopt.rs +++ b/src/sys/socket/sockopt.rs @@ -121,9 +121,9 @@ sockopt_impl!(Both, TcpNoDelay, consts::IPPROTO_TCP, consts::TCP_NODELAY, bool); sockopt_impl!(Both, Linger, consts::SOL_SOCKET, consts::SO_LINGER, super::linger); sockopt_impl!(SetOnly, IpAddMembership, consts::IPPROTO_IP, consts::IP_ADD_MEMBERSHIP, super::ip_mreq); sockopt_impl!(SetOnly, IpDropMembership, consts::IPPROTO_IP, consts::IP_DROP_MEMBERSHIP, super::ip_mreq); -#[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "netbsd", target_os = "dragonfly")))] +#[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "netbsd", target_os = "dragonfly", target_os = "freebsd")))] sockopt_impl!(SetOnly, Ipv6AddMembership, consts::IPPROTO_IPV6, consts::IPV6_ADD_MEMBERSHIP, super::ipv6_mreq); -#[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "netbsd", target_os = "dragonfly")))] +#[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "netbsd", target_os = "dragonfly", target_os = "freebsd")))] sockopt_impl!(SetOnly, Ipv6DropMembership, consts::IPPROTO_IPV6, consts::IPV6_DROP_MEMBERSHIP, super::ipv6_mreq); #[cfg(target_os = "netbsd")] sockopt_impl!(SetOnly, Ipv6AddMembership, consts::IPPROTO_IPV6, consts::IPV6_JOIN_GROUP, super::ipv6_mreq); |