diff --git a/src/unix/newlib/aarch64/mod.rs b/src/unix/newlib/aarch64/mod.rs index 6454756bf1c16..d686b3692d86d 100644 --- a/src/unix/newlib/aarch64/mod.rs +++ b/src/unix/newlib/aarch64/mod.rs @@ -1,5 +1,3 @@ -pub use crate::unix::newlib::generic::{sigset_t, stat}; - pub type clock_t = ::c_long; pub type c_char = u8; pub type wchar_t = u32; @@ -52,3 +50,5 @@ pub const MSG_DONTROUTE: ::c_int = 0; pub const MSG_WAITALL: ::c_int = 0; pub const MSG_MORE: ::c_int = 0; pub const MSG_NOSIGNAL: ::c_int = 0; + +pub use crate::unix::newlib::generic::{sigset_t, stat}; diff --git a/src/unix/newlib/arm/mod.rs b/src/unix/newlib/arm/mod.rs index 835455357eb7d..f644349cb997f 100644 --- a/src/unix/newlib/arm/mod.rs +++ b/src/unix/newlib/arm/mod.rs @@ -1,5 +1,3 @@ -pub use crate::unix::newlib::generic::{sigset_t, stat}; - pub type clock_t = ::c_long; pub type c_char = u8; pub type wchar_t = u32; @@ -54,3 +52,5 @@ pub const MSG_DONTROUTE: ::c_int = 0; pub const MSG_WAITALL: ::c_int = 0; pub const MSG_MORE: ::c_int = 0; pub const MSG_NOSIGNAL: ::c_int = 0; + +pub use crate::unix::newlib::generic::{sigset_t, stat}; diff --git a/src/unix/newlib/espidf/mod.rs b/src/unix/newlib/espidf/mod.rs index 7188571a27c76..38c99c6b35373 100644 --- a/src/unix/newlib/espidf/mod.rs +++ b/src/unix/newlib/espidf/mod.rs @@ -1,5 +1,3 @@ -pub use crate::unix::newlib::generic::{sigset_t, stat}; - pub type clock_t = ::c_ulong; pub type c_char = i8; pub type wchar_t = u32; @@ -103,3 +101,5 @@ extern "C" { #[link_name = "lwip_recvmsg"] pub fn recvmsg(s: ::c_int, msg: *mut ::msghdr, flags: ::c_int) -> ::ssize_t; } + +pub use crate::unix::newlib::generic::{sigset_t, stat}; diff --git a/src/unix/newlib/mod.rs b/src/unix/newlib/mod.rs index 149ade445180a..34a63a81a03f7 100644 --- a/src/unix/newlib/mod.rs +++ b/src/unix/newlib/mod.rs @@ -139,7 +139,6 @@ s! { pub tm_isdst: ::c_int, } - pub struct statvfs { pub f_bsize: ::c_ulong, pub f_frsize: ::c_ulong, diff --git a/src/unix/newlib/powerpc/mod.rs b/src/unix/newlib/powerpc/mod.rs index d046d202bd020..6bed1ce27acbf 100644 --- a/src/unix/newlib/powerpc/mod.rs +++ b/src/unix/newlib/powerpc/mod.rs @@ -1,5 +1,3 @@ -pub use crate::unix::newlib::generic::{sigset_t, stat}; - pub type clock_t = ::c_ulong; pub type c_char = u8; pub type wchar_t = ::c_int; @@ -7,6 +5,8 @@ pub type wchar_t = ::c_int; pub type c_long = i32; pub type c_ulong = u32; +pub use crate::unix::newlib::generic::{sigset_t, stat}; + // the newlib shipped with devkitPPC does not support the following components: // - sockaddr // - AF_INET6