Skip to content

Commit

Permalink
additional reformatting of target_os configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
wginolas committed Nov 7, 2017
1 parent 4b4caec commit 1da09dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
13 changes: 6 additions & 7 deletions src/sys/aio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ libc_enum! {
/// do it like `fsync`
O_SYNC,
/// on supported operating systems only, do it like `fdatasync`
#[cfg(any(
target_os = "bitrig",
target_os = "ios",
target_os = "linux",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd"))]
#[cfg(any(target_os = "bitrig",
target_os = "ios",
target_os = "linux",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd"))]
O_DSYNC
}
}
Expand Down
5 changes: 2 additions & 3 deletions src/sys/signal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ libc_enum!{
SIGPIPE,
SIGALRM,
SIGTERM,
#[cfg(all(
any(target_os = "android", target_os = "emscripten", target_os = "linux"),
not(any(target_arch = "mips", target_arch = "mips64"))))]
#[cfg(all(any(target_os = "android", target_os = "emscripten", target_os = "linux"),
not(any(target_arch = "mips", target_arch = "mips64"))))]
SIGSTKFLT,
SIGCHLD,
SIGCONT,
Expand Down

0 comments on commit 1da09dd

Please sign in to comment.