Skip to content

Commit

Permalink
Auto merge of #3256 - vita-rust:pthread-fixup, r=JohnTitor
Browse files Browse the repository at this point in the history
Fixed pthread_attr_t and pthread_rwlockattr_t for newlib

A follow-up to #3255 (https://github.com/rust-lang/libc/pull/3255/files#diff-11a2a6578a3a63a601856de0cbfaa5c7f41dcecab5532a1c8b9662656894e126L222)

My apologies, these should have been u8 arrays.
  • Loading branch information
bors committed May 31, 2023
2 parents e2d90cd + 21c1340 commit a23c8ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unix/newlib/mod.rs
Expand Up @@ -234,11 +234,11 @@ s! {
}

pub struct pthread_attr_t { // Unverified
__size: [u64; __SIZEOF_PTHREAD_ATTR_T]
__size: [u8; __SIZEOF_PTHREAD_ATTR_T]
}

pub struct pthread_rwlockattr_t { // Unverified
__size: [u64; __SIZEOF_PTHREAD_RWLOCKATTR_T]
__size: [u8; __SIZEOF_PTHREAD_RWLOCKATTR_T]
}
}

Expand Down

0 comments on commit a23c8ca

Please sign in to comment.