Skip to content

Commit

Permalink
dragonflybsd build fix proposal.
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen authored and sunfishcode committed Sep 25, 2022
1 parent 2c52b93 commit 9bcde41
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/backend/libc/process/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ pub enum Signal {
Term = c::SIGTERM,
/// `SIGSTKFLT`
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "illumos",
target_os = "ios",
Expand Down Expand Up @@ -246,6 +247,7 @@ pub enum Signal {
Io = c::SIGIO,
/// `SIGPWR`
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "ios",
target_os = "macos",
Expand Down Expand Up @@ -280,6 +282,7 @@ impl Signal {
c::SIGALRM => Some(Self::Alarm),
c::SIGTERM => Some(Self::Term),
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "illumos",
target_os = "ios",
Expand Down Expand Up @@ -307,6 +310,7 @@ impl Signal {
c::SIGWINCH => Some(Self::Winch),
c::SIGIO => Some(Self::Io),
#[cfg(not(any(
target_os = "dragonfly",
target_os = "freebsd",
target_os = "ios",
target_os = "macos",
Expand Down Expand Up @@ -365,10 +369,7 @@ pub(crate) fn raw_cpu_set_new() -> RawCpuSet {
set
}

#[cfg(any(
target_os = "android",
target_os = "dragonfly",
target_os = "fuchsia",
target_os = "linux",
))]
#[cfg(any(target_os = "android", target_os = "fuchsia", target_os = "linux",))]
pub(crate) const CPU_SETSIZE: usize = c::CPU_SETSIZE as usize;
#[cfg(target_os = "dragonfly")]
pub(crate) const CPU_SETSIZE: usize = 256;

0 comments on commit 9bcde41

Please sign in to comment.