aboutsummaryrefslogtreecommitdiff
path: root/libc/src/unix/linux_like/android/b64
diff options
context:
space:
mode:
Diffstat (limited to 'libc/src/unix/linux_like/android/b64')
-rw-r--r--libc/src/unix/linux_like/android/b64/aarch64/align.rs7
-rw-r--r--libc/src/unix/linux_like/android/b64/aarch64/mod.rs (renamed from libc/src/unix/linux_like/android/b64/aarch64.rs)7
-rw-r--r--libc/src/unix/linux_like/android/b64/mod.rs2
-rw-r--r--libc/src/unix/linux_like/android/b64/x86_64/align.rs7
-rw-r--r--libc/src/unix/linux_like/android/b64/x86_64/mod.rs (renamed from libc/src/unix/linux_like/android/b64/x86_64.rs)7
5 files changed, 29 insertions, 1 deletions
diff --git a/libc/src/unix/linux_like/android/b64/aarch64/align.rs b/libc/src/unix/linux_like/android/b64/aarch64/align.rs
new file mode 100644
index 0000000..8e94996
--- /dev/null
+++ b/libc/src/unix/linux_like/android/b64/aarch64/align.rs
@@ -0,0 +1,7 @@
+s_no_extra_traits! {
+ #[allow(missing_debug_implementations)]
+ #[repr(align(16))]
+ pub struct max_align_t {
+ priv_: [f32; 8]
+ }
+}
diff --git a/libc/src/unix/linux_like/android/b64/aarch64.rs b/libc/src/unix/linux_like/android/b64/aarch64/mod.rs
index cb1c81b..b2b9188 100644
--- a/libc/src/unix/linux_like/android/b64/aarch64.rs
+++ b/libc/src/unix/linux_like/android/b64/aarch64/mod.rs
@@ -323,3 +323,10 @@ pub const SYS_pkey_mprotect: ::c_long = 288;
pub const SYS_pkey_alloc: ::c_long = 289;
pub const SYS_pkey_free: ::c_long = 290;
pub const SYS_syscalls: ::c_long = 292;
+
+cfg_if! {
+ if #[cfg(libc_align)] {
+ mod align;
+ pub use self::align::*;
+ }
+}
diff --git a/libc/src/unix/linux_like/android/b64/mod.rs b/libc/src/unix/linux_like/android/b64/mod.rs
index d9759bd..9826bb9 100644
--- a/libc/src/unix/linux_like/android/b64/mod.rs
+++ b/libc/src/unix/linux_like/android/b64/mod.rs
@@ -107,7 +107,7 @@ s! {
}
}
-s_no_extra_traits!{
+s_no_extra_traits! {
pub struct pthread_mutex_t {
value: ::c_int,
__reserved: [::c_char; 36],
diff --git a/libc/src/unix/linux_like/android/b64/x86_64/align.rs b/libc/src/unix/linux_like/android/b64/x86_64/align.rs
new file mode 100644
index 0000000..7ca870f
--- /dev/null
+++ b/libc/src/unix/linux_like/android/b64/x86_64/align.rs
@@ -0,0 +1,7 @@
+s_no_extra_traits! {
+ #[allow(missing_debug_implementations)]
+ #[repr(align(16))]
+ pub struct max_align_t {
+ priv_: [f64; 4]
+ }
+}
diff --git a/libc/src/unix/linux_like/android/b64/x86_64.rs b/libc/src/unix/linux_like/android/b64/x86_64/mod.rs
index 2ab6080..f5b8b16 100644
--- a/libc/src/unix/linux_like/android/b64/x86_64.rs
+++ b/libc/src/unix/linux_like/android/b64/x86_64/mod.rs
@@ -418,3 +418,10 @@ pub const DS: ::c_int = 23;
pub const ES: ::c_int = 24;
pub const FS: ::c_int = 25;
pub const GS: ::c_int = 26;
+
+cfg_if! {
+ if #[cfg(libc_align)] {
+ mod align;
+ pub use self::align::*;
+ }
+}