Skip to content

Commit 27dcd87

Browse files
committed
auto merge of #12051 : luqmana/rust/arm-fix, r=alexcrichton
Fix building for arm/Linux.
2 parents 9a9a70b + f286859 commit 27dcd87

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/libstd/unstable/mutex.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,17 @@ mod imp {
153153
static __SIZEOF_PTHREAD_MUTEX_T: uint = 40 - 8;
154154
#[cfg(target_arch = "x86")]
155155
static __SIZEOF_PTHREAD_MUTEX_T: uint = 24 - 8;
156+
#[cfg(target_arch = "arm")]
157+
static __SIZEOF_PTHREAD_MUTEX_T: uint = 24 - 8;
156158
#[cfg(target_arch = "x86_64")]
157159
static __SIZEOF_PTHREAD_COND_T: uint = 48 - 8;
158160
#[cfg(target_arch = "x86")]
159161
static __SIZEOF_PTHREAD_COND_T: uint = 48 - 8;
162+
#[cfg(target_arch = "arm")]
163+
static __SIZEOF_PTHREAD_COND_T: uint = 48 - 8;
160164

161165
pub struct pthread_mutex_t {
162-
__align: libc::c_long,
166+
__align: libc::c_longlong,
163167
size: [u8, ..__SIZEOF_PTHREAD_MUTEX_T],
164168
}
165169
pub struct pthread_cond_t {

0 commit comments

Comments
 (0)