Skip to content

Commit 7a05dc2

Browse files
committed
powerpc: pthread support
1 parent e9908da commit 7a05dc2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/libstd/sys/unix/sync.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ mod os {
126126
#[cfg(any(target_arch = "x86",
127127
target_arch = "arm",
128128
target_arch = "mips",
129-
target_arch = "mipsel"))]
129+
target_arch = "mipsel",
130+
target_arch = "powerpc"))]
130131
const __SIZEOF_PTHREAD_MUTEX_T: uint = 24 - 8;
131132
#[cfg(target_arch = "aarch64")]
132133
const __SIZEOF_PTHREAD_MUTEX_T: uint = 48 - 8;
@@ -136,7 +137,8 @@ mod os {
136137
target_arch = "arm",
137138
target_arch = "aarch64",
138139
target_arch = "mips",
139-
target_arch = "mipsel"))]
140+
target_arch = "mipsel",
141+
target_arch = "powerpc"))]
140142
const __SIZEOF_PTHREAD_COND_T: uint = 48 - 8;
141143

142144
#[cfg(any(target_arch = "x86_64",
@@ -146,7 +148,8 @@ mod os {
146148
#[cfg(any(target_arch = "x86",
147149
target_arch = "arm",
148150
target_arch = "mips",
149-
target_arch = "mipsel"))]
151+
target_arch = "mipsel",
152+
target_arch = "powerpc"))]
150153
const __SIZEOF_PTHREAD_RWLOCK_T: uint = 32 - 8;
151154

152155
#[repr(C)]

0 commit comments

Comments
 (0)