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:
Alex Crichton 2015-03-28 10:49:45 -07:00
parent 3e7385aae9
commit bd66f57e46

View File

@ -307,7 +307,10 @@ pub mod types {
#[derive(Copy)] pub struct sockaddr_storage { #[derive(Copy)] pub struct sockaddr_storage {
pub ss_family: sa_family_t, pub ss_family: sa_family_t,
pub __ss_align: isize, 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)] #[repr(C)]
#[derive(Copy)] pub struct sockaddr_in { #[derive(Copy)] pub struct sockaddr_in {