Skip to content

Commit ba16d81

Browse files
committed
aarch64-linux-gnu: avoid double exporting of user_fpsimd_struct
1 parent 6652fe1 commit ba16d81

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

src/unix/linux_like/linux/gnu/b64/aarch64/align.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@ s! {
2727
__reserved: [[u64; 32]; 16],
2828
}
2929

30-
#[repr(align(16))]
31-
pub struct user_fpsimd_struct {
32-
pub vregs: [[u64; 2]; 32],
33-
pub fpsr: ::c_uint,
34-
pub fpcr: ::c_uint,
35-
}
36-
3730
#[repr(align(8))]
3831
pub struct clone_args {
3932
pub flags: ::c_ulonglong,
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
s! {
2+
#[repr(align(16))]
3+
pub struct user_fpsimd_struct {
4+
pub vregs: [[u64; 2]; 32],
5+
pub fpsr: ::c_uint,
6+
pub fpcr: ::c_uint,
7+
}
8+
}

src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,5 +934,8 @@ cfg_if! {
934934
if #[cfg(libc_int128)] {
935935
mod int128;
936936
pub use self::int128::*;
937+
} else {
938+
mod fallback;
939+
pub use self::fallback::*;
937940
}
938941
}

0 commit comments

Comments
 (0)