We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47aa345 commit 0254577Copy full SHA for 0254577
src/unix/newlib/mod.rs
@@ -23,6 +23,8 @@ pub type tcflag_t = ::c_uint;
23
pub type time_t = i32;
24
pub type useconds_t = u32;
25
26
+#[cfg(not(all(libc_cfg_target_vendor, target_arch = "powerpc",
27
+ target_vendor = "nintendo")))]
28
s! {
29
// The order of the `ai_addr` field in this struct is crucial
30
// for converting between the Rust and C types.
@@ -33,21 +35,19 @@ s! {
33
35
pub ai_protocol: ::c_int,
34
36
pub ai_addrlen: socklen_t,
37
- #[cfg(not(all(libc_cfg_target_vendor, target_arch = "powerpc",
- target_vendor = "nintendo")))]
38
#[cfg(target_arch = "xtensa")]
39
pub ai_addr: *mut sockaddr,
40
41
pub ai_canonname: *mut ::c_char,
42
43
44
45
#[cfg(not(target_arch = "xtensa"))]
46
47
48
pub ai_next: *mut addrinfo,
49
}
+}
50
+s! {
51
pub struct ip_mreq {
52
pub imr_multiaddr: in_addr,
53
pub imr_interface: in_addr,
0 commit comments