Skip to content

Commit

Permalink
powerpc: pthread support
Browse files Browse the repository at this point in the history
  • Loading branch information
richo committed Jan 12, 2015
1 parent e9908da commit 7a05dc2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/libstd/sys/unix/sync.rs
Expand Up @@ -126,7 +126,8 @@ mod os {
#[cfg(any(target_arch = "x86",
target_arch = "arm",
target_arch = "mips",
target_arch = "mipsel"))]
target_arch = "mipsel",
target_arch = "powerpc"))]
const __SIZEOF_PTHREAD_MUTEX_T: uint = 24 - 8;
#[cfg(target_arch = "aarch64")]
const __SIZEOF_PTHREAD_MUTEX_T: uint = 48 - 8;
Expand All @@ -136,7 +137,8 @@ mod os {
target_arch = "arm",
target_arch = "aarch64",
target_arch = "mips",
target_arch = "mipsel"))]
target_arch = "mipsel",
target_arch = "powerpc"))]
const __SIZEOF_PTHREAD_COND_T: uint = 48 - 8;

#[cfg(any(target_arch = "x86_64",
Expand All @@ -146,7 +148,8 @@ mod os {
#[cfg(any(target_arch = "x86",
target_arch = "arm",
target_arch = "mips",
target_arch = "mipsel"))]
target_arch = "mipsel",
target_arch = "powerpc"))]
const __SIZEOF_PTHREAD_RWLOCK_T: uint = 32 - 8;

#[repr(C)]
Expand Down

0 comments on commit 7a05dc2

Please sign in to comment.