Skip to content

Commit 0254577

Browse files
committed
Disable the entire addrinfo struct on devkitppc
1 parent 47aa345 commit 0254577

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/unix/newlib/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ pub type tcflag_t = ::c_uint;
2323
pub type time_t = i32;
2424
pub type useconds_t = u32;
2525

26+
#[cfg(not(all(libc_cfg_target_vendor, target_arch = "powerpc",
27+
target_vendor = "nintendo")))]
2628
s! {
2729
// The order of the `ai_addr` field in this struct is crucial
2830
// for converting between the Rust and C types.
@@ -33,21 +35,19 @@ s! {
3335
pub ai_protocol: ::c_int,
3436
pub ai_addrlen: socklen_t,
3537

36-
#[cfg(not(all(libc_cfg_target_vendor, target_arch = "powerpc",
37-
target_vendor = "nintendo")))]
3838
#[cfg(target_arch = "xtensa")]
3939
pub ai_addr: *mut sockaddr,
4040

4141
pub ai_canonname: *mut ::c_char,
4242

43-
#[cfg(not(all(libc_cfg_target_vendor, target_arch = "powerpc",
44-
target_vendor = "nintendo")))]
4543
#[cfg(not(target_arch = "xtensa"))]
4644
pub ai_addr: *mut sockaddr,
4745

4846
pub ai_next: *mut addrinfo,
4947
}
48+
}
5049

50+
s! {
5151
pub struct ip_mreq {
5252
pub imr_multiaddr: in_addr,
5353
pub imr_interface: in_addr,

0 commit comments

Comments
 (0)