We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c2a86d commit e84dbb7Copy full SHA for e84dbb7
src/unix/mod.rs
@@ -23,13 +23,21 @@ pub type uintptr_t = usize;
23
pub type ssize_t = isize;
24
25
pub type pid_t = i32;
26
-pub type uid_t = u32;
27
-pub type gid_t = u32;
28
pub type in_addr_t = u32;
29
pub type in_port_t = u16;
30
pub type sighandler_t = ::size_t;
31
pub type cc_t = ::c_uchar;
32
+cfg_if! {
+ if #[cfg(target_os = "horizon")] {
33
+ pub type uid_t = ::c_ushort;
34
+ pub type gid_t = ::c_ushort;
35
+ } else {
36
+ pub type uid_t = u32;
37
+ pub type gid_t = u32;
38
+ }
39
+}
40
+
41
#[cfg_attr(feature = "extra_traits", derive(Debug))]
42
pub enum DIR {}
43
impl ::Copy for DIR {}
0 commit comments