Skip to content

Commit ebb6b01

Browse files
committed
Auto merge of #496 - fiveop:consolidate_socketaddr_storage, r=@fiveop
Always use libc's socketaddr_storage Since rust-lang/rust#23425 is closed, we no longer need the special case.
2 parents 9b81000 + 495365b commit ebb6b01

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/sys/socket/mod.rs

-9
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,8 @@ pub use self::multicast::{
5050
};
5151
pub use self::consts::*;
5252

53-
#[cfg(any(not(target_os = "linux"), not(target_arch = "x86")))]
5453
pub use libc::sockaddr_storage;
5554

56-
// Working around rust-lang/rust#23425
57-
#[cfg(all(target_os = "linux", target_arch = "x86"))]
58-
pub struct sockaddr_storage {
59-
pub ss_family: sa_family_t,
60-
pub __ss_align: u32,
61-
pub __ss_pad2: [u8; 120],
62-
}
63-
6455
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
6556
#[repr(i32)]
6657
pub enum SockType {

0 commit comments

Comments
 (0)