Fix uid_t and gid_t sizes on horizon

(cherry picked from commit e84dbb7cb3a015c9f33db9b29019975c669113de)
This commit is contained in:
Ian Chamberlain 2022-02-12 20:43:17 -05:00 committed by Mark Drobnak
parent e99e36e8d1
commit 4646be7a6b
No known key found for this signature in database
GPG key ID: 47A133F3BF9D03D3

View file

@ -23,13 +23,21 @@ pub type uintptr_t = usize;
pub type ssize_t = isize;
pub type pid_t = i32;
pub type uid_t = u32;
pub type gid_t = u32;
pub type in_addr_t = u32;
pub type in_port_t = u16;
pub type sighandler_t = ::size_t;
pub type cc_t = ::c_uchar;
cfg_if! {
if #[cfg(target_os = "horizon")] {
pub type uid_t = ::c_ushort;
pub type gid_t = ::c_ushort;
} else {
pub type uid_t = u32;
pub type gid_t = u32;
}
}
#[cfg_attr(feature = "extra_traits", derive(Debug))]
pub enum DIR {}
impl ::Copy for DIR {}