Use repr(align(x)) for redox in6_addr
This commit is contained in:
parent
e96b760757
commit
c0041f4a17
1 changed files with 1 additions and 1 deletions
|
@ -24,10 +24,10 @@ pub struct in_addr {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
|
#[repr(align(4))]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct in6_addr {
|
pub struct in6_addr {
|
||||||
pub s6_addr: [u8; 16],
|
pub s6_addr: [u8; 16],
|
||||||
__align: [u32; 0],
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue