Skip to content

Commit 7e28016

Browse files
committed
Alphabetize some target_os configurations
1 parent 718bd9d commit 7e28016

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

src/sys/aio.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ libc_enum! {
1919
/// do it like `fsync`
2020
O_SYNC,
2121
/// on supported operating systems only, do it like `fdatasync`
22-
#[cfg(any(target_os = "openbsd", target_os = "bitrig",
23-
target_os = "netbsd", target_os = "macos", target_os = "ios",
24-
target_os = "linux"))]
22+
#[cfg(any(target_os = "bitrig",
23+
target_os = "ios",
24+
target_os = "linux",
25+
target_os = "macos",
26+
target_os = "netbsd",
27+
target_os = "openbsd"))]
2528
O_DSYNC
2629
}
2730
}

src/sys/event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ libc_enum! {
5959
target_os = "ios",
6060
target_os = "macos"))]
6161
EVFILT_USER,
62-
#[cfg(any(target_os = "macos", target_os = "ios"))]
62+
#[cfg(any(target_os = "ios", target_os = "macos"))]
6363
EVFILT_VM,
6464
EVFILT_VNODE,
6565
EVFILT_WRITE,

src/sys/signal.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ libc_enum!{
3333
SIGPIPE,
3434
SIGALRM,
3535
SIGTERM,
36-
#[cfg(all(any(target_os = "linux", target_os = "android", target_os = "emscripten"), not(any(target_arch = "mips", target_arch = "mips64"))))]
36+
#[cfg(all(any(target_os = "android", target_os = "emscripten", target_os = "linux"),
37+
not(any(target_arch = "mips", target_arch = "mips64"))))]
3738
SIGSTKFLT,
3839
SIGCHLD,
3940
SIGCONT,
@@ -48,12 +49,12 @@ libc_enum!{
4849
SIGPROF,
4950
SIGWINCH,
5051
SIGIO,
51-
#[cfg(any(target_os = "linux", target_os = "android", target_os = "emscripten"))]
52+
#[cfg(any(target_os = "android", target_os = "emscripten", target_os = "linux"))]
5253
SIGPWR,
5354
SIGSYS,
54-
#[cfg(not(any(target_os = "linux", target_os = "android", target_os = "emscripten")))]
55+
#[cfg(not(any(target_os = "android", target_os = "emscripten", target_os = "linux")))]
5556
SIGEMT,
56-
#[cfg(not(any(target_os = "linux", target_os = "android", target_os = "emscripten")))]
57+
#[cfg(not(any(target_os = "android", target_os = "emscripten", target_os = "linux")))]
5758
SIGINFO,
5859
}
5960
}

0 commit comments

Comments
 (0)