mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-16 02:24:35 +00:00
libc: Don't use unstable apis
Right now the `std::isize::BYTES` typedef is `#[unstable]`, but liblibc is using this, preventing it from compiling on stable Rust.
This commit is contained in:
parent
3e7385aae9
commit
bd66f57e46
@ -307,7 +307,10 @@ pub mod types {
|
||||
#[derive(Copy)] pub struct sockaddr_storage {
|
||||
pub ss_family: sa_family_t,
|
||||
pub __ss_align: isize,
|
||||
pub __ss_pad2: [u8; 128 - 2 * (::core::isize::BYTES as usize)],
|
||||
#[cfg(target_pointer_width = "32")]
|
||||
pub __ss_pad2: [u8; 128 - 2 * 4],
|
||||
#[cfg(target_pointer_width = "64")]
|
||||
pub __ss_pad2: [u8; 128 - 2 * 8],
|
||||
}
|
||||
#[repr(C)]
|
||||
#[derive(Copy)] pub struct sockaddr_in {
|
||||
|
Loading…
Reference in New Issue
Block a user