]> git.lizzy.rs Git - rust.git/commitdiff
Fix the Solaris pthread_t raw type in std to match what's in libc
authorDanek Duvall <danek.duvall@oracle.com>
Tue, 1 Aug 2017 19:38:36 +0000 (12:38 -0700)
committerDanek Duvall <danek.duvall@oracle.com>
Tue, 1 Aug 2017 19:38:36 +0000 (12:38 -0700)
The old type causes failures when building cargo 0.20.0 after
changeset 8304e06b5 in the libc repo.

src/libstd/os/solaris/raw.rs

index b84fdba9ca25cdb024989fa05ffce38ada0d3935..5a813c5c76bcaea3a24f2e1f0e0339f956799995 100644 (file)
@@ -32,7 +32,7 @@
 #[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)]