Add missing sockaddr_in to platform/src/types.rs

This commit is contained in:
jD91mZM2
2018-07-25 14:39:28 +02:00
parent e749d23030
commit dec5e0a019
+13
View File
@@ -131,6 +131,19 @@ pub struct sockaddr {
pub data: [c_char; 14],
}
#[repr(C)]
#[derive(Debug, Clone, Copy)]
pub struct in_addr {
pub s_addr: in_addr_t
}
#[repr(C)]
pub struct sockaddr_in {
pub sin_family: sa_family_t,
pub sin_port: in_port_t,
pub sin_addr: in_addr
}
#[repr(C)]
pub struct sigaction {
pub sa_handler: extern "C" fn(c_int),