Skip to content

Commit dc4c75d

Browse files
authored
Merge pull request #4528 from Gelbpunkt/mips64-musl-stack_t
musl: mips64: Use special MIPS definition of stack_t
2 parents 448abcf + 3d3392b commit dc4c75d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/unix/linux_like/linux/musl/b64/mips64.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ s! {
5656
__pad5: [c_int; 14],
5757
}
5858

59+
pub struct stack_t {
60+
pub ss_sp: *mut c_void,
61+
pub ss_size: size_t,
62+
pub ss_flags: c_int,
63+
}
64+
5965
pub struct ipc_perm {
6066
#[cfg(musl_v1_2_3)]
6167
pub __key: crate::key_t,

src/unix/linux_like/linux/musl/b64/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ use crate::prelude::*;
33
pub type regoff_t = c_long;
44

55
s! {
6+
// MIPS implementation is special, see the subfolder.
7+
#[cfg(not(target_arch = "mips64"))]
68
pub struct stack_t {
79
pub ss_sp: *mut c_void,
810
pub ss_flags: c_int,

0 commit comments

Comments
 (0)