Skip to content
Snippets Groups Projects
Verified Commit dec5e0a0 authored by jD91mZM2's avatar jD91mZM2
Browse files

Add missing sockaddr_in to platform/src/types.rs

parent e749d230
No related branches found
No related tags found
No related merge requests found
......@@ -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),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment