Skip to content

Commit

Permalink
Auto merge of #526 - Fulkerson:master, r=posborne
Browse files Browse the repository at this point in the history
Remove EPOLLWAKEUP and SIGEV_THREAD_ID when cross-compiling to MIPS.

With this nix builds for mipsel-unknown-linux-gnu.
  • Loading branch information
homu committed Feb 25, 2017
2 parents cb1c915 + 965341c commit 4ab234c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/sys/epoll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ libc_bitflags!(
EPOLLRDHUP,
#[cfg(target_os = "linux")] // Added in 4.5; not in Android.
EPOLLEXCLUSIVE,
#[cfg(not(target_arch = "mips"))]
EPOLLWAKEUP,
EPOLLONESHOT,
EPOLLET,
Expand Down
4 changes: 2 additions & 2 deletions src/sys/signal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,9 @@ impl SigEvent {
SigevNotify::SigevKevent{..} => libc::SIGEV_KEVENT,
#[cfg(target_os = "freebsd")]
SigevNotify::SigevThreadId{..} => libc::SIGEV_THREAD_ID,
#[cfg(all(target_os = "linux", target_env = "gnu"))]
#[cfg(all(target_os = "linux", target_env = "gnu", not(target_arch = "mips")))]
SigevNotify::SigevThreadId{..} => libc::SIGEV_THREAD_ID,
#[cfg(all(target_os = "linux", target_env = "musl"))]
#[cfg(any(all(target_os = "linux", target_env = "musl"), target_arch = "mips"))]
SigevNotify::SigevThreadId{..} => 4 // No SIGEV_THREAD_ID defined
};
sev.sigev_signo = match sigev_notify {
Expand Down

0 comments on commit 4ab234c

Please sign in to comment.