Skip to content

Commit 17ba5c1

Browse files
andreas-schwabJohnTitor
authored andcommitted
Define max_align_t for riscv64-linux
1 parent 7e4e75c commit 17ba5c1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

libc-test/semver/linux-riscv64gc.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,4 @@ TIOCSRS485
8080
flock64
8181
fsblkcnt64_t
8282
fsfilcnt64_t
83+
max_align_t

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,11 @@ s_no_extra_traits! {
286286
pub __fcsr: c_uint,
287287
pub __glibc_reserved: [c_uint; 3],
288288
}
289+
290+
#[repr(align(16))]
291+
pub struct max_align_t {
292+
priv_: [f32; 8],
293+
}
289294
}
290295

291296
pub const POSIX_FADV_DONTNEED: c_int = 4;

0 commit comments

Comments
 (0)