From bdb53e55b0d30ad4f5438eff74d0b705f8675d98 Mon Sep 17 00:00:00 2001 From: Danek Duvall Date: Tue, 1 Aug 2017 12:38:36 -0700 Subject: [PATCH] Fix the Solaris pthread_t raw type in std to match what's in libc The old type causes failures when building cargo 0.20.0 after changeset 8304e06b5 in the libc repo. --- src/libstd/os/solaris/raw.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/os/solaris/raw.rs b/src/libstd/os/solaris/raw.rs index b84fdba9ca25c..5a813c5c76bca 100644 --- a/src/libstd/os/solaris/raw.rs +++ b/src/libstd/os/solaris/raw.rs @@ -32,7 +32,7 @@ use os::unix::raw::{uid_t, gid_t}; #[stable(feature = "raw_ext", since = "1.1.0")] pub type time_t = i64; #[stable(feature = "pthread_t", since = "1.8.0")] -pub type pthread_t = usize; +pub type pthread_t = u32; #[repr(C)] #[derive(Clone)]