Skip to content
Snippets Groups Projects
Commit 01ca4a4a authored by Andreas Schwab's avatar Andreas Schwab
Browse files

Fix alignment of struct pthread_mutexattr_t for riscv64-linux-gnu

parent f9e7aac0
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,8 @@ macro_rules! expand_align {
target_arch = "mips64",
target_arch = "s390x",
target_arch = "sparc64",
target_arch = "aarch64"),
target_arch = "aarch64",
target_arch = "riscv64"),
repr(align(4)))]
#[cfg_attr(not(any(target_pointer_width = "32",
target_arch = "x86_64",
......@@ -15,7 +16,8 @@ macro_rules! expand_align {
target_arch = "mips64",
target_arch = "s390x",
target_arch = "sparc64",
target_arch = "aarch64")),
target_arch = "aarch64",
target_arch = "riscv64")),
repr(align(8)))]
pub struct pthread_mutexattr_t {
#[doc(hidden)]
......
......@@ -7,6 +7,7 @@ macro_rules! expand_align {
target_arch = "mips64",
target_arch = "s390x",
target_arch = "sparc64",
target_arch = "riscv64",
all(target_arch = "aarch64",
target_env = "musl")))]
__align: [::c_int; 0],
......@@ -15,6 +16,7 @@ macro_rules! expand_align {
target_arch = "mips64",
target_arch = "s390x",
target_arch = "sparc64",
target_arch = "riscv64",
all(target_arch = "aarch64",
target_env = "musl"))))]
__align: [::c_long; 0],
......
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