We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5326203 commit 61d758bCopy full SHA for 61d758b
src/unix/notbsd/linux/mips/mod.rs
@@ -21,11 +21,16 @@ s! {
21
}
22
23
// FIXME this is actually a union
24
+ #[cfg_attr(all(feature = "align", target_pointer_width = "32"),
25
+ repr(align(4)))]
26
+ #[cfg_attr(all(feature = "align", target_pointer_width = "64"),
27
+ repr(align(8)))]
28
pub struct sem_t {
29
#[cfg(target_pointer_width = "32")]
30
__size: [::c_char; 16],
31
#[cfg(target_pointer_width = "64")]
32
__size: [::c_char; 32],
33
+ #[cfg(not(feature = "align"))]
34
__align: [::c_long; 0],
35
36
0 commit comments