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 cef3b81 commit 98ef7e7Copy full SHA for 98ef7e7
src/unix/newlib/mod.rs
@@ -28,9 +28,16 @@ pub type socklen_t = u32;
28
pub type speed_t = u32;
29
pub type suseconds_t = i32;
30
pub type tcflag_t = ::c_uint;
31
-pub type time_t = i32;
32
pub type useconds_t = u32;
33
+cfg_if! {
34
+ if #[cfg(target_os = "horizon")] {
35
+ pub type time_t = ::c_longlong;
36
+ } else {
37
+ pub type time_t = i32;
38
+ }
39
+}
40
+
41
s! {
42
// The order of the `ai_addr` field in this struct is crucial
43
// for converting between the Rust and C types.
0 commit comments