We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e7385a commit bd66f57Copy full SHA for bd66f57
src/liblibc/lib.rs
@@ -307,7 +307,10 @@ pub mod types {
307
#[derive(Copy)] pub struct sockaddr_storage {
308
pub ss_family: sa_family_t,
309
pub __ss_align: isize,
310
- pub __ss_pad2: [u8; 128 - 2 * (::core::isize::BYTES as usize)],
+ #[cfg(target_pointer_width = "32")]
311
+ pub __ss_pad2: [u8; 128 - 2 * 4],
312
+ #[cfg(target_pointer_width = "64")]
313
+ pub __ss_pad2: [u8; 128 - 2 * 8],
314
}
315
#[repr(C)]
316
#[derive(Copy)] pub struct sockaddr_in {
0 commit comments