summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <dev@sunfishcode.online>2021-12-03 06:08:47 -0800
committerDan Gohman <dev@sunfishcode.online>2021-12-03 06:52:30 -0800
commit76f88e91cf417709f7c8e999dd60952cc0b1b6d9 (patch)
tree337a578ff775f4d1a5a05ab8280668af3e2e03ce
parentbc30b21e82ef43ee93197f7430be9c440bbb4289 (diff)
downloadrust-libc-76f88e91cf417709f7c8e999dd60952cc0b1b6d9.tar.gz
Define max_align_t for wasi.
WASI has a normal max_align_t.
-rw-r--r--src/wasi.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wasi.rs b/src/wasi.rs
index ea83732898..f35f34cd4f 100644
--- a/src/wasi.rs
+++ b/src/wasi.rs
@@ -39,6 +39,13 @@ pub type blkcnt_t = i64;
pub type nfds_t = c_ulong;
pub type wchar_t = i32;
+s_no_extra_traits! {
+ #[repr(align(16))]
+ pub struct max_align_t {
+ priv_: [f64; 4]
+ }
+}
+
pub type __wasi_rights_t = u64;
#[allow(missing_copy_implementations)]