diff --git a/libc-test/build.rs b/libc-test/build.rs index 9b4527ec1658924b6c30b05b06aedf37e3a6f91d..a4c493f7e8263a9e46fee3859ed9bc34e01a07a0 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -141,8 +141,6 @@ impl<'a> TestGenerator<'a> { s => s.to_string(), } } - // Perhaps this should be renamed in libc... - "ip6_mreq" => "struct ipv6_mreq".to_string(), // Just pass all these through, no need for a "struct" prefix "glob_t" | diff --git a/src/lib.rs b/src/lib.rs index fc2e6c2a2340e4d49c3fa3854d89acd4489da651..c6b5bd1496e4178eb943a6b1f5a244885ef59c75 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -347,7 +347,7 @@ pub mod types { pub imr_interface: in_addr, } #[repr(C)] - #[derive(Copy, Clone)] pub struct ip6_mreq { + #[derive(Copy, Clone)] pub struct ipv6_mreq { pub ipv6mr_multiaddr: in6_addr, pub ipv6mr_interface: c_uint, } @@ -912,7 +912,7 @@ pub mod types { pub imr_interface: in_addr, } #[repr(C)] - #[derive(Copy, Clone)] pub struct ip6_mreq { + #[derive(Copy, Clone)] pub struct ipv6_mreq { pub ipv6mr_multiaddr: in6_addr, pub ipv6mr_interface: c_uint, } @@ -1274,7 +1274,7 @@ pub mod types { pub imr_interface: in_addr, } #[repr(C)] - #[derive(Copy, Clone)] pub struct ip6_mreq { + #[derive(Copy, Clone)] pub struct ipv6_mreq { pub ipv6mr_multiaddr: in6_addr, pub ipv6mr_interface: c_uint, } @@ -1561,7 +1561,7 @@ pub mod types { pub imr_interface: in_addr, } #[repr(C)] - #[derive(Copy, Clone)] pub struct ip6_mreq { + #[derive(Copy, Clone)] pub struct ipv6_mreq { pub ipv6mr_multiaddr: in6_addr, pub ipv6mr_interface: c_uint, } @@ -1788,7 +1788,7 @@ pub mod types { pub imr_interface: in_addr, } #[repr(C)] - #[derive(Copy, Clone)] pub struct ip6_mreq { + #[derive(Copy, Clone)] pub struct ipv6_mreq { pub ipv6mr_multiaddr: in6_addr, pub ipv6mr_interface: c_uint, } @@ -2233,7 +2233,7 @@ pub mod types { } #[repr(C)] - #[derive(Copy, Clone)] pub struct ip6_mreq { + #[derive(Copy, Clone)] pub struct ipv6_mreq { pub ipv6mr_multiaddr: in6_addr, pub ipv6mr_interface: c_uint, }