Skip to content

Commit

Permalink
FreeBSD 10.x is EOL, in FreeBSD 11 and later, ss_sp is actually a voi…
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name authored and MikaelUrankar committed Jan 22, 2019
1 parent 70284d7 commit 5e18756
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
6 changes: 6 additions & 0 deletions src/unix/bsd/freebsdlike/dragonfly/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,12 @@ s! {
pub sdl_rcf: ::c_ushort,
pub sdl_route: [::c_ushort; 16],
}

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

pub const RAND_MAX: ::c_int = 0x7fff_ffff;
Expand Down
6 changes: 6 additions & 0 deletions src/unix/bsd/freebsdlike/freebsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ s! {
pub sdl_slen: ::c_uchar,
pub sdl_data: [::c_char; 46],
}

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

pub const SIGEV_THREAD_ID: ::c_int = 4;
Expand Down
7 changes: 0 additions & 7 deletions src/unix/bsd/freebsdlike/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,6 @@ s! {
pub sa_mask: sigset_t,
}

pub struct stack_t {
// In FreeBSD 11 and later, ss_sp is actually a void*
pub ss_sp: *mut ::c_char,
pub ss_size: ::size_t,
pub ss_flags: ::c_int,
}

pub struct sched_param {
pub sched_priority: ::c_int,
}
Expand Down

0 comments on commit 5e18756

Please sign in to comment.