From 63bb3f482ddddfc31df267dc31b35c89a137dffb Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sun, 7 Jan 2018 23:36:04 +0100 Subject: [PATCH] Add time_t for CloudABI. Even though this data type is not used by libstd in any platform independent code, one of the unit tests in src/libstd/time/mod.rs refers to it. Instead of making that unit test more complicated, simply add time_t, matching the type used by the C library. --- src/cloudabi/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cloudabi/mod.rs b/src/cloudabi/mod.rs index bb4b9fa301f89..1d8875f9227ba 100644 --- a/src/cloudabi/mod.rs +++ b/src/cloudabi/mod.rs @@ -4,6 +4,7 @@ pub type pthread_key_t = usize; pub type pthread_t = usize; pub type sa_family_t = u8; pub type socklen_t = usize; +pub type time_t = i64; s! { pub struct addrinfo {