Skip to content

Commit 2b4cd10

Browse files
committed
Auto merge of #889 - EdSchouten:cloudabi-time_t, r=alexcrichton
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.
2 parents d73af99 + 63bb3f4 commit 2b4cd10

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cloudabi/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ pub type pthread_key_t = usize;
44
pub type pthread_t = usize;
55
pub type sa_family_t = u8;
66
pub type socklen_t = usize;
7+
pub type time_t = i64;
78

89
s! {
910
pub struct addrinfo {

0 commit comments

Comments
 (0)