Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/unix/linux_like/emscripten/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ s! {
}

pub struct pthread_attr_t {
__size: [u32; 11],
// 11 pointer-width words: 44 bytes on wasm32, 88 on wasm64 (MEMORY64).
__size: [usize; 11],
}

pub struct sigset_t {
Expand Down Expand Up @@ -1064,8 +1065,14 @@ pub const SO_RXQ_OVFL: c_int = 40;
pub const SO_PEEK_OFF: c_int = 42;
pub const SO_BUSY_POLL: c_int = 46;

#[cfg(target_pointer_width = "32")]
pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 32;
#[cfg(target_pointer_width = "64")]
pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56;
#[cfg(target_pointer_width = "32")]
pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 24;
#[cfg(target_pointer_width = "64")]
pub const __SIZEOF_PTHREAD_MUTEX_T: usize = 40;

pub const O_DIRECT: c_int = 0x4000;
pub const O_DIRECTORY: c_int = 0x10000;
Expand Down
Loading