From 61f2baa0af6b2a54e0c109e5f73c8ff25f9f2ca6 Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Sat, 1 Jun 2019 11:46:58 -0700 Subject: Update libc crate to 0.2.57 This change updates the libc crate to version 0.2.57. Import subrepo libc/:libc at cdc48ea36d8d2890dba38e8f779001e6855339a2 --- libc/src/unix/bsd/netbsdlike/openbsd/x86.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libc/src/unix/bsd/netbsdlike/openbsd/x86.rs (limited to 'libc/src/unix/bsd/netbsdlike/openbsd/x86.rs') diff --git a/libc/src/unix/bsd/netbsdlike/openbsd/x86.rs b/libc/src/unix/bsd/netbsdlike/openbsd/x86.rs new file mode 100644 index 0000000..05538cd --- /dev/null +++ b/libc/src/unix/bsd/netbsdlike/openbsd/x86.rs @@ -0,0 +1,14 @@ +pub type c_long = i32; +pub type c_ulong = u32; +pub type c_char = i8; + +// should be pub(crate), but that requires Rust 1.18.0 +cfg_if! { + if #[cfg(libc_const_size_of)] { + #[doc(hidden)] + pub const _ALIGNBYTES: usize = ::mem::size_of::<::c_int>() - 1; + } else { + #[doc(hidden)] + pub const _ALIGNBYTES: usize = 4 - 1; + } +} -- cgit v1.2.1