diff options
author | Wolfgang Ginolas <wolfgang.ginolas@gwif.eu> | 2017-11-05 20:25:54 +0100 |
---|---|---|
committer | Wolfgang Ginolas <wolfgang.ginolas@gwif.eu> | 2017-11-11 15:20:48 +0100 |
commit | 7e280167d820a8b77f2adfcb9ebfe96e38d64c5a (patch) | |
tree | 449c041c5f6ac9206be389bbf5857bf00b56825c /src/sys | |
parent | 718bd9d75ec948afe211b4b49935044ab2004822 (diff) | |
download | nix-7e280167d820a8b77f2adfcb9ebfe96e38d64c5a.zip |
Alphabetize some target_os configurations
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/aio.rs | 9 | ||||
-rw-r--r-- | src/sys/event.rs | 2 | ||||
-rw-r--r-- | src/sys/signal.rs | 9 |
3 files changed, 12 insertions, 8 deletions
diff --git a/src/sys/aio.rs b/src/sys/aio.rs index bfb0d9b2..826c0973 100644 --- a/src/sys/aio.rs +++ b/src/sys/aio.rs @@ -19,9 +19,12 @@ libc_enum! { /// do it like `fsync` O_SYNC, /// on supported operating systems only, do it like `fdatasync` - #[cfg(any(target_os = "openbsd", target_os = "bitrig", - target_os = "netbsd", target_os = "macos", target_os = "ios", - target_os = "linux"))] + #[cfg(any(target_os = "bitrig", + target_os = "ios", + target_os = "linux", + target_os = "macos", + target_os = "netbsd", + target_os = "openbsd"))] O_DSYNC } } diff --git a/src/sys/event.rs b/src/sys/event.rs index e0125f47..189f8239 100644 --- a/src/sys/event.rs +++ b/src/sys/event.rs @@ -59,7 +59,7 @@ libc_enum! { target_os = "ios", target_os = "macos"))] EVFILT_USER, - #[cfg(any(target_os = "macos", target_os = "ios"))] + #[cfg(any(target_os = "ios", target_os = "macos"))] EVFILT_VM, EVFILT_VNODE, EVFILT_WRITE, diff --git a/src/sys/signal.rs b/src/sys/signal.rs index a481059c..093fdb8e 100644 --- a/src/sys/signal.rs +++ b/src/sys/signal.rs @@ -33,7 +33,8 @@ libc_enum!{ SIGPIPE, SIGALRM, SIGTERM, - #[cfg(all(any(target_os = "linux", target_os = "android", target_os = "emscripten"), 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, @@ -48,12 +49,12 @@ libc_enum!{ SIGPROF, SIGWINCH, SIGIO, - #[cfg(any(target_os = "linux", target_os = "android", target_os = "emscripten"))] + #[cfg(any(target_os = "android", target_os = "emscripten", target_os = "linux"))] SIGPWR, SIGSYS, - #[cfg(not(any(target_os = "linux", target_os = "android", target_os = "emscripten")))] + #[cfg(not(any(target_os = "android", target_os = "emscripten", target_os = "linux")))] SIGEMT, - #[cfg(not(any(target_os = "linux", target_os = "android", target_os = "emscripten")))] + #[cfg(not(any(target_os = "android", target_os = "emscripten", target_os = "linux")))] SIGINFO, } } |