diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index 8ae593779cdefdec3321c12a80f0fe62cf98f72a..3c0877b2758bedccea61ec1b2bcca2e310d4ce74 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -31,6 +31,7 @@ pub type posix_spawnattr_t = *mut ::c_void; pub type posix_spawn_file_actions_t = *mut ::c_void; pub type key_t = ::c_int; pub type shmatt_t = ::c_ushort; +pub type vm_size_t = ::uintptr_t; #[cfg_attr(feature = "extra_traits", derive(Debug))] pub enum timezone {} diff --git a/src/unix/bsd/freebsdlike/mod.rs b/src/unix/bsd/freebsdlike/mod.rs index 1f4d3dd489349ce5c907dd1b6ad04bbadfc14840..e296e07b126d6d3da20d4e141b8da4ac64ec99ff 100644 --- a/src/unix/bsd/freebsdlike/mod.rs +++ b/src/unix/bsd/freebsdlike/mod.rs @@ -14,6 +14,7 @@ pub type tcflag_t = ::c_uint; pub type speed_t = ::c_uint; pub type nl_item = ::c_int; pub type id_t = i64; +pub type vm_size_t = ::uintptr_t; #[cfg_attr(feature = "extra_traits", derive(Debug))] pub enum timezone {} diff --git a/src/unix/bsd/mod.rs b/src/unix/bsd/mod.rs index 44e43577348a12f65985c48503188acc632d4a85..e1a2f416fdfc3e1a42b3c142ddc89d17a09a2b0f 100644 --- a/src/unix/bsd/mod.rs +++ b/src/unix/bsd/mod.rs @@ -6,7 +6,6 @@ pub type socklen_t = u32; pub type sa_family_t = u8; pub type pthread_t = ::uintptr_t; pub type nfds_t = ::c_uint; -pub type vm_size_t = ::uintptr_t; s! { pub struct sockaddr { diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs index caf4922d4d6154f0f67cfb0a181f359e77110fae..ad53c19b3b6adee064cc3c45a352ebe0d50f1d73 100644 --- a/src/unix/bsd/netbsdlike/netbsd/mod.rs +++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs @@ -7,6 +7,7 @@ pub type fsfilcnt_t = ::uint64_t; pub type idtype_t = ::c_int; pub type mqd_t = ::c_int; type __pthread_spin_t = __cpu_simple_lock_nv_t; +pub type vm_size_t = ::uintptr_t; s! { pub struct aiocb {