Skip to content

musl: mips64: Use special MIPS definition of stack_t #4528

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 7, 2025
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions src/unix/linux_like/linux/musl/b64/mips64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ s! {
__pad5: [c_int; 14],
}

pub struct stack_t {
pub ss_sp: *mut c_void,
pub ss_size: size_t,
pub ss_flags: c_int,
}

pub struct ipc_perm {
#[cfg(musl_v1_2_3)]
pub __key: crate::key_t,
Expand Down
2 changes: 2 additions & 0 deletions src/unix/linux_like/linux/musl/b64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ use crate::prelude::*;
pub type regoff_t = c_long;

s! {
// MIPS implementation is special, see the subfolder.
#[cfg(not(target_arch = "mips64"))]
pub struct stack_t {
pub ss_sp: *mut c_void,
pub ss_flags: c_int,
Expand Down
Loading